nlog 1.0.0.505-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/docs/LICENSE.txt +32 -0
- data/docs/NLog.chm +0 -0
- data/docs/NLogC FAQ.txt +23 -0
- data/docs/README.txt +29 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.csproj +53 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.sln +20 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/NLog.config +16 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/Program.cs +87 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.csproj +53 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.sln +20 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/NLog.config +12 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/Program.cs +85 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/ExtendingLoggers/README.html +39 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.csproj +95 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax +1 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax.cs +40 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx +16 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.cs +30 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs +18 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx +16 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.cs +32 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.designer.cs +18 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Properties/AssemblyInfo.cs +10 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Web.config +22 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.csproj +130 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.sln +20 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/Global.asax.cs +25 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/README.txt +4 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/global.asax +1 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/test.aspx +23 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/web.config +8 -0
- data/docs/examples/targets/Configuration API/All_Targets.sln +320 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.csproj +39 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.sln +20 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/Example.cs +23 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.csproj +39 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.sln +20 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/Example.cs +44 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/Example.cs +30 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Console.csproj +39 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Console.sln +20 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Example.cs +16 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.csproj +39 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Example.cs +43 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.csproj +40 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.csproj +40 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Example.cs +26 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Debug.csproj +39 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Debug.sln +20 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.csproj +39 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.sln +20 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Example.cs +18 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.csproj +39 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.sln +20 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/Example.cs +20 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/Example.cs +31 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive1/Example.cs +29 -0
- data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive2/Example.cs +46 -0
- data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive3/Example.cs +50 -0
- data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive4/Example.cs +63 -0
- data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/Example.cs +25 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.sln +20 -0
- data/docs/examples/targets/Configuration API/File/CSV/Example.cs +29 -0
- data/docs/examples/targets/Configuration API/File/CSV/File.CSV.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/CSV/File.CSV.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Multiple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Simple/File.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Simple/File.sln +20 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/FormControl/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.Designer.cs +62 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.cs +36 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/FormControl/FormControl.csproj +81 -0
- data/docs/examples/targets/Configuration API/FormControl/FormControl.sln +20 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.csproj +39 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.sln +20 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.csproj +39 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.sln +20 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Example.cs +48 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.csproj +39 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.sln +20 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Example.cs +33 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Mail.csproj +39 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Mail.sln +20 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Example.cs +23 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Memory.csproj +39 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Memory.sln +20 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.csproj +39 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.sln +20 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.csproj +39 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.sln +20 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.csproj +39 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.sln +20 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Network.csproj +39 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Network.sln +20 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Null.csproj +40 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Null.sln +20 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.csproj +40 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.sln +20 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.csproj +40 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.sln +20 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/Example.cs +41 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/Example.cs +25 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.cs +46 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.cs +36 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.cs +46 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.sln +20 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/Template.csproj +39 -0
- data/docs/examples/targets/Configuration API/Template.sln +20 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Trace.csproj +40 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Trace.sln +20 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService.csproj +39 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService.sln +26 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Properties/AssemblyInfo.cs +13 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx +1 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx.cs +24 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Web.config +36 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/WebService1.csproj +77 -0
- data/docs/examples/targets/Configuration API/makeproject.pl +37 -0
- data/docs/examples/targets/Configuration File/ASPNetBufferingWrapper/web.nlog +15 -0
- data/docs/examples/targets/Configuration File/ASPNetTrace/web.nlog +10 -0
- data/docs/examples/targets/Configuration File/AsyncWrapper/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/AutoFlushWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/BufferingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/Chainsaw/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Row Highlighting/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Simple/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Word Highlighting/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/Console/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/NLog.config +30 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.bat +21 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.sql +35 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.bat +19 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.sql +4 -0
- data/docs/examples/targets/Configuration File/Database/Oracle.Native/NLog.config +23 -0
- data/docs/examples/targets/Configuration File/Database/Oracle.OleDb/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/Debug/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Debugger/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/EventLog/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/FallbackGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Archive1/NLog.config +20 -0
- data/docs/examples/targets/Configuration File/File/Archive2/NLog.config +20 -0
- data/docs/examples/targets/Configuration File/File/Archive3/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/File/Archive4/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/File/Asynchronous/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/File/CSV/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/File/Multiple/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Multiple2/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Simple/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/FilteringWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/FormControl/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/MSMQ/Multiple/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/MSMQ/Simple/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/Mail/Buffered/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/Mail/Simple/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/Memory/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/MessageBox/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/MethodCall/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/NLogViewer/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Network/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Null/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/OutputDebugString/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/PerfCounter/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/PostFilteringWrapper/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/RandomizeGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RepeatingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/RetryingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/RichTextBox/RowColoring/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RichTextBox/Simple/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/RichTextBox/WordColoring/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RoundRobinGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/SplitGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/Trace/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/WebService/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Properties/AssemblyInfo.cs +13 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx +1 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx.cs +24 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Web.config +36 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.csproj +77 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.sln +20 -0
- data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput1.gif +0 -0
- data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput2.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Row Highlighting.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Simple.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Word Highlighting.gif +0 -0
- data/docs/examples/targets/Screenshots/FormControl/FormControl.gif +0 -0
- data/docs/examples/targets/Screenshots/MessageBox/MessageBoxTarget.gif +0 -0
- data/docs/examples/targets/Screenshots/Network/Output.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/RowColoring.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/Simple.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/WordColoring.gif +0 -0
- data/docs/examples/web/AddFilter.cs +6 -0
- data/docs/examples/web/AddLayoutRenderer.cs +6 -0
- data/docs/examples/web/AddTarget.cs +6 -0
- data/docs/examples/web/GetCurrentClassLogger.cs +11 -0
- data/docs/examples/web/GetLogger.cs +11 -0
- data/docs/examples/web/MyFirstFilter.cs +35 -0
- data/docs/examples/web/MyFirstLayoutRenderer.cs +41 -0
- data/docs/examples/web/MyFirstTarget.cs +28 -0
- data/docs/examples/web/NLogC.cpp +26 -0
- data/docs/examples/web/NLogCdef.cpp +28 -0
- data/docs/examples/web/Performance.cs +16 -0
- data/docs/examples/web/app.config +10 -0
- data/docs/examples/web/article1.cs +21 -0
- data/docs/examples/web/article2.cs +33 -0
- data/docs/examples/web/article3.nlog +9 -0
- data/docs/examples/web/article4.nlog +9 -0
- data/docs/examples/web/article5.nlog +24 -0
- data/docs/examples/web/article6.nlog +7 -0
- data/docs/examples/web/benchmark_log4net.cs +30 -0
- data/docs/examples/web/benchmark_nlog.cs +29 -0
- data/docs/examples/web/config1.nlog +4 -0
- data/docs/examples/web/config10.nlog +18 -0
- data/docs/examples/web/config11.nlog +14 -0
- data/docs/examples/web/config12.nlog +4 -0
- data/docs/examples/web/config2.nlog +3 -0
- data/docs/examples/web/config3.nlog +24 -0
- data/docs/examples/web/config4.nlog +25 -0
- data/docs/examples/web/config5.nlog +10 -0
- data/docs/examples/web/config6.nlog +23 -0
- data/docs/examples/web/config7.nlog +14 -0
- data/docs/examples/web/config8.nlog +9 -0
- data/docs/examples/web/config8a.nlog +9 -0
- data/docs/examples/web/config9.nlog +14 -0
- data/docs/examples/web/test.js +44 -0
- data/docs/examples/web/test.vbs +46 -0
- data/docs/examples/web/tutorial.cs +37 -0
- data/lib/Mono 1.0/NLog.dll +0 -0
- data/lib/Mono 1.0/NLog.xml +12948 -0
- data/lib/Mono 1.0/NLog.xsd +1566 -0
- data/lib/Mono 1.0/Policy.1.0.NLog.dll +0 -0
- data/lib/Mono 1.0/Policy.1.0.NLog.xml +11 -0
- data/lib/Mono 2.0/NLog.dll +0 -0
- data/lib/Mono 2.0/NLog.xml +12969 -0
- data/lib/Mono 2.0/NLog.xsd +1566 -0
- data/lib/Mono 2.0/Policy.1.0.NLog.dll +0 -0
- data/lib/Mono 2.0/Policy.1.0.NLog.xml +11 -0
- metadata +410 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
using System.Reflection;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using System.Runtime.InteropServices;
|
4
|
+
|
5
|
+
[assembly: AssemblyTitle("WebService1")]
|
6
|
+
[assembly: AssemblyDescription("")]
|
7
|
+
[assembly: AssemblyConfiguration("")]
|
8
|
+
[assembly: AssemblyTrademark("")]
|
9
|
+
[assembly: AssemblyCulture("")]
|
10
|
+
[assembly: ComVisible(false)]
|
11
|
+
[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")]
|
12
|
+
[assembly: AssemblyVersion("1.0.0.0")]
|
13
|
+
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@@ -0,0 +1 @@
|
|
1
|
+
<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="WebService1.Service1" %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Data;
|
3
|
+
using System.Web;
|
4
|
+
using System.Collections;
|
5
|
+
using System.Web.Services;
|
6
|
+
using System.Web.Services.Protocols;
|
7
|
+
using System.ComponentModel;
|
8
|
+
|
9
|
+
namespace WebService1
|
10
|
+
{
|
11
|
+
[WebService(Namespace = "http://www.nlog-project.org/example")]
|
12
|
+
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
13
|
+
[ToolboxItem(false)]
|
14
|
+
public class Service1 : System.Web.Services.WebService
|
15
|
+
{
|
16
|
+
[WebMethod]
|
17
|
+
public void HelloWorld(string n1, string n2, string n3)
|
18
|
+
{
|
19
|
+
HttpContext.Current.Trace.Write("n1 " + n1);
|
20
|
+
HttpContext.Current.Trace.Write("n2 " + n2);
|
21
|
+
HttpContext.Current.Trace.Write("n3 " + n3);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
|
3
|
+
<configuration>
|
4
|
+
|
5
|
+
<appSettings/>
|
6
|
+
<connectionStrings/>
|
7
|
+
|
8
|
+
<system.web>
|
9
|
+
<!--
|
10
|
+
Set compilation debug="true" to insert debugging
|
11
|
+
symbols into the compiled page. Because this
|
12
|
+
affects performance, set this value to true only
|
13
|
+
during development.
|
14
|
+
-->
|
15
|
+
<compilation debug="true" />
|
16
|
+
<!--
|
17
|
+
The <authentication> section enables configuration
|
18
|
+
of the security authentication mode used by
|
19
|
+
ASP.NET to identify an incoming user.
|
20
|
+
-->
|
21
|
+
<trace enabled="true"/>
|
22
|
+
<authentication mode="Windows" />
|
23
|
+
<!--
|
24
|
+
The <customErrors> section enables configuration
|
25
|
+
of what to do if/when an unhandled error occurs
|
26
|
+
during the execution of a request. Specifically,
|
27
|
+
it enables developers to configure html error pages
|
28
|
+
to be displayed in place of a error stack trace.
|
29
|
+
|
30
|
+
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
31
|
+
<error statusCode="403" redirect="NoAccess.htm" />
|
32
|
+
<error statusCode="404" redirect="FileNotFound.htm" />
|
33
|
+
</customErrors>
|
34
|
+
-->
|
35
|
+
</system.web>
|
36
|
+
</configuration>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2
|
+
<PropertyGroup>
|
3
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
4
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
5
|
+
<ProductVersion>8.0.50727</ProductVersion>
|
6
|
+
<SchemaVersion>2.0</SchemaVersion>
|
7
|
+
<ProjectGuid>{7E750696-C0EC-4B2C-B870-331A54F25CA4}</ProjectGuid>
|
8
|
+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
9
|
+
<OutputType>Library</OutputType>
|
10
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
11
|
+
<RootNamespace>WebService1</RootNamespace>
|
12
|
+
<AssemblyName>WebService1</AssemblyName>
|
13
|
+
</PropertyGroup>
|
14
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
15
|
+
<DebugSymbols>true</DebugSymbols>
|
16
|
+
<DebugType>full</DebugType>
|
17
|
+
<Optimize>false</Optimize>
|
18
|
+
<OutputPath>bin\</OutputPath>
|
19
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
20
|
+
<ErrorReport>prompt</ErrorReport>
|
21
|
+
<WarningLevel>4</WarningLevel>
|
22
|
+
</PropertyGroup>
|
23
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
24
|
+
<DebugType>pdbonly</DebugType>
|
25
|
+
<Optimize>true</Optimize>
|
26
|
+
<OutputPath>bin\</OutputPath>
|
27
|
+
<DefineConstants>TRACE</DefineConstants>
|
28
|
+
<ErrorReport>prompt</ErrorReport>
|
29
|
+
<WarningLevel>4</WarningLevel>
|
30
|
+
</PropertyGroup>
|
31
|
+
<ItemGroup>
|
32
|
+
<Reference Include="System" />
|
33
|
+
<Reference Include="System.Data" />
|
34
|
+
<Reference Include="System.Drawing" />
|
35
|
+
<Reference Include="System.Web" />
|
36
|
+
<Reference Include="System.Xml" />
|
37
|
+
<Reference Include="System.Configuration" />
|
38
|
+
<Reference Include="System.Web.Services" />
|
39
|
+
<Reference Include="System.EnterpriseServices" />
|
40
|
+
<Reference Include="System.Web.Mobile" />
|
41
|
+
</ItemGroup>
|
42
|
+
<ItemGroup>
|
43
|
+
<Content Include="Service1.asmx" />
|
44
|
+
<Content Include="Web.config" />
|
45
|
+
</ItemGroup>
|
46
|
+
<ItemGroup>
|
47
|
+
<Compile Include="Service1.asmx.cs">
|
48
|
+
<DependentUpon>Service1.asmx</DependentUpon>
|
49
|
+
<SubType>Component</SubType>
|
50
|
+
</Compile>
|
51
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
52
|
+
</ItemGroup>
|
53
|
+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
54
|
+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
|
55
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
56
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
57
|
+
<Target Name="BeforeBuild">
|
58
|
+
</Target>
|
59
|
+
<Target Name="AfterBuild">
|
60
|
+
</Target>
|
61
|
+
-->
|
62
|
+
<ProjectExtensions>
|
63
|
+
<VisualStudio>
|
64
|
+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
65
|
+
<WebProjectProperties>
|
66
|
+
<UseIIS>False</UseIIS>
|
67
|
+
<AutoAssignPort>True</AutoAssignPort>
|
68
|
+
<DevelopmentServerPort>2648</DevelopmentServerPort>
|
69
|
+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
70
|
+
<IISUrl>
|
71
|
+
</IISUrl>
|
72
|
+
<NTLMAuthentication>False</NTLMAuthentication>
|
73
|
+
</WebProjectProperties>
|
74
|
+
</FlavorProperties>
|
75
|
+
</VisualStudio>
|
76
|
+
</ProjectExtensions>
|
77
|
+
</Project>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
my $targetName = shift || die;
|
2
|
+
my $variantName = shift;
|
3
|
+
my $projectGuid = `uuidgen -c`;
|
4
|
+
my $projectName = "$targetName.$variantName";
|
5
|
+
my $projectDir = "$targetName/$variantName";
|
6
|
+
|
7
|
+
if ($variantName eq "")
|
8
|
+
{
|
9
|
+
$projectDir = "$targetName/Simple";
|
10
|
+
$projectName = "$targetName";
|
11
|
+
}
|
12
|
+
chomp $projectGuid;
|
13
|
+
|
14
|
+
sub apply_template
|
15
|
+
{
|
16
|
+
my $src = shift || die;
|
17
|
+
my $dst = shift || die;
|
18
|
+
|
19
|
+
open(IN, "<$src") || die;
|
20
|
+
open(OUT, ">$dst") || die;
|
21
|
+
while (<IN>)
|
22
|
+
{
|
23
|
+
s/_TARGET_/$targetName/g;
|
24
|
+
s/_VARIANT_/$variantName/g;
|
25
|
+
s/_PROJECT_GUID_/$projectGuid/g;
|
26
|
+
s/_PROJECT_NAME_/$projectName/g;
|
27
|
+
s/_PROJECT_DIR_/$projectDir/g;
|
28
|
+
print OUT;
|
29
|
+
}
|
30
|
+
close(OUT);
|
31
|
+
close(IN);
|
32
|
+
}
|
33
|
+
|
34
|
+
mkdir("$targetName",0666);
|
35
|
+
mkdir("$projectDir",0666);
|
36
|
+
apply_template("Template.sln", "$projectDir/$projectName.sln");
|
37
|
+
apply_template("Template.csproj", "$projectDir/$projectName.csproj");
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="t" xsi:type="ASPNetBufferingWrapper">
|
6
|
+
<target xsi:type="PostFilteringWrapper" defaultFilter="level >= LogLevel.Info">
|
7
|
+
<target xsi:type="File" fileName="${basedir}/file.txt"/>
|
8
|
+
<when exists="level >= LogLevel.Warn" filter="level >= LogLevel.Debug"/>
|
9
|
+
</target>
|
10
|
+
</target>
|
11
|
+
</targets>
|
12
|
+
<rules>
|
13
|
+
<logger name="*" minlevel="Debug" writeTo="t" />
|
14
|
+
</rules>
|
15
|
+
</nlog>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="aspnet" xsi:type="ASPNetTrace" layout="${logger} ${message}" />
|
6
|
+
</targets>
|
7
|
+
<rules>
|
8
|
+
<logger name="*" minlevel="Debug" writeTo="aspnet" />
|
9
|
+
</rules>
|
10
|
+
</nlog>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<!-- Log in a separate thread, possibly queueing up to
|
6
|
+
5000 messages. When the queue overflows, discard any
|
7
|
+
extra messages-->
|
8
|
+
|
9
|
+
<target name="file" xsi:type="AsyncWrapper" queueLimit="5000" overflowAction="Discard">
|
10
|
+
<target xsi:type="File" fileName="${basedir}/logs/${level}.txt" />
|
11
|
+
</target>
|
12
|
+
</targets>
|
13
|
+
|
14
|
+
<rules>
|
15
|
+
<logger name="*" minlevel="Debug" writeTo="file" />
|
16
|
+
</rules>
|
17
|
+
</nlog>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="file" xsi:type="AutoFlushWrapper">
|
6
|
+
<target xsi:type="File" fileName="${basedir}/file.txt" />
|
7
|
+
</target>
|
8
|
+
</targets>
|
9
|
+
|
10
|
+
<rules>
|
11
|
+
<logger name="*" minlevel="Debug" writeTo="file" />
|
12
|
+
</rules>
|
13
|
+
</nlog>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="file" xsi:type="BufferingWrapper" bufferSize="100">
|
6
|
+
<target xsi:type="File" fileName="${basedir}/file.txt" />
|
7
|
+
</target>
|
8
|
+
</targets>
|
9
|
+
|
10
|
+
<rules>
|
11
|
+
<logger name="*" minlevel="Debug" writeTo="file" />
|
12
|
+
</rules>
|
13
|
+
</nlog>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="viewer" xsi:type="Chainsaw" address="ucp://localhost:4000" />
|
6
|
+
</targets>
|
7
|
+
|
8
|
+
<rules>
|
9
|
+
<logger name="*" minlevel="Debug" writeTo="viewer" />
|
10
|
+
</rules>
|
11
|
+
</nlog>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:MM\:ss} ${logger} ${message}">
|
6
|
+
<highlight-row condition="level >= LogLevel.Error and contains(message,'serious')" foregroundColor="White" backgroundColor="Red" />
|
7
|
+
<highlight-row condition="starts-with(logger,'Example')" foregroundColor="Yellow" backgroundColor="DarkBlue" />
|
8
|
+
</target>
|
9
|
+
</targets>
|
10
|
+
|
11
|
+
<rules>
|
12
|
+
<logger name="*" minlevel="Trace" writeTo="console" />
|
13
|
+
</rules>
|
14
|
+
</nlog>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:MM\:ss} ${logger} ${message}">
|
6
|
+
</target>
|
7
|
+
</targets>
|
8
|
+
|
9
|
+
<rules>
|
10
|
+
<logger name="*" minlevel="Trace" writeTo="console" />
|
11
|
+
</rules>
|
12
|
+
</nlog>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:MM\:ss} ${logger} ${message}">
|
6
|
+
<highlight-word text="log" backgroundColor="DarkGreen" />
|
7
|
+
<highlight-word text="abc" foregroundColor="Cyan" />
|
8
|
+
</target>
|
9
|
+
</targets>
|
10
|
+
|
11
|
+
<rules>
|
12
|
+
<logger name="*" minlevel="Trace" writeTo="console" />
|
13
|
+
</rules>
|
14
|
+
</nlog>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
4
|
+
<targets>
|
5
|
+
<target name="console" xsi:type="Console" layout="${date:format=HH\:MM\:ss} ${logger} ${message}" />
|
6
|
+
</targets>
|
7
|
+
|
8
|
+
<rules>
|
9
|
+
<logger name="*" minlevel="Info" writeTo="console" />
|
10
|
+
</rules>
|
11
|
+
</nlog>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog autoReload="true">
|
3
|
+
<targets>
|
4
|
+
<target name="database" type="Database">
|
5
|
+
|
6
|
+
<dbprovider>mssql</dbprovider>
|
7
|
+
|
8
|
+
<!-- database connection parameters -->
|
9
|
+
<!-- alternatively you could provide a single 'connectionstring' parameter -->
|
10
|
+
|
11
|
+
<dbhost>.</dbhost>
|
12
|
+
<dbdatabase>NLogDatabase</dbdatabase>
|
13
|
+
<dbusername>nloguser</dbusername>
|
14
|
+
<dbpassword>nlogpassword</dbpassword>
|
15
|
+
|
16
|
+
<commandText>
|
17
|
+
insert into LogTable(time_stamp,level,logger,message) values(@time_stamp, @level, @logger, @message);
|
18
|
+
</commandText>
|
19
|
+
|
20
|
+
<parameter name="@time_stamp" layout="${date}" />
|
21
|
+
<parameter name="@level" layout="${level}" />
|
22
|
+
<parameter name="@logger" layout="${logger}" />
|
23
|
+
<parameter name="@message" layout="${message}" />
|
24
|
+
</target>
|
25
|
+
</targets>
|
26
|
+
|
27
|
+
<rules>
|
28
|
+
<logger name="*" minlevel="Debug" appendTo="database" />
|
29
|
+
</rules>
|
30
|
+
</nlog>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@echo off
|
2
|
+
set DBNAME=NLogDatabase
|
3
|
+
if (%1)==() goto usage
|
4
|
+
set LOGIN=
|
5
|
+
if (%2)==() set LOGIN=-E
|
6
|
+
cls
|
7
|
+
echo.
|
8
|
+
echo This will create %DBNAME% database on %1
|
9
|
+
echo.
|
10
|
+
echo You can press Ctrl+C to quit now.
|
11
|
+
echo.
|
12
|
+
pause
|
13
|
+
osql -S %1 %LOGIN% %2 %3 %4 %5 %6 -n -i create_nlog_database.sql
|
14
|
+
pause
|
15
|
+
goto quit
|
16
|
+
|
17
|
+
:usage
|
18
|
+
echo Usage: create_nlog_database.bat HOSTNAME
|
19
|
+
echo This will create %DBNAME% database on HOSTNAME
|
20
|
+
|
21
|
+
:quit
|
@@ -0,0 +1,35 @@
|
|
1
|
+
use master;
|
2
|
+
go
|
3
|
+
|
4
|
+
create database NLogDatabase
|
5
|
+
/*
|
6
|
+
on primary (name='NLogDatabase
|
7
|
+
filename='***insert_path_here***\NLogDatabase.mdf',
|
8
|
+
size=10MB)
|
9
|
+
log on (name='NLogDatabase_log',
|
10
|
+
filename='***insert_path_here***\NLogDatabase_log.ldf',
|
11
|
+
size=10MB)
|
12
|
+
*/
|
13
|
+
go
|
14
|
+
|
15
|
+
exec sp_addlogin 'nloguser','nlogpassword',NLogDatabase
|
16
|
+
go
|
17
|
+
|
18
|
+
use NLogDatabase;
|
19
|
+
go
|
20
|
+
|
21
|
+
create table LogTable
|
22
|
+
(
|
23
|
+
sequence_id integer not null primary key identity(1,1),
|
24
|
+
time_stamp datetime not null,
|
25
|
+
level varchar(5) not null,
|
26
|
+
logger varchar(80) not null,
|
27
|
+
message varchar(4095) not null,
|
28
|
+
)
|
29
|
+
go
|
30
|
+
|
31
|
+
exec sp_grantdbaccess 'nloguser','nloguser'
|
32
|
+
go
|
33
|
+
|
34
|
+
grant insert,select on LogTable to nloguser
|
35
|
+
go
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@echo off
|
2
|
+
set DBNAME=NLogDatabase
|
3
|
+
if (%1)==() goto usage
|
4
|
+
cls
|
5
|
+
echo.
|
6
|
+
echo This will drop %DBNAME% database on %1
|
7
|
+
echo.
|
8
|
+
echo You can press Ctrl+C to quit now.
|
9
|
+
echo.
|
10
|
+
pause
|
11
|
+
osql -S %1 -E -n -i drop_nlog_database.sql
|
12
|
+
pause
|
13
|
+
goto quit
|
14
|
+
|
15
|
+
:usage
|
16
|
+
echo Usage: drop_nlog_database.bat HOSTNAME
|
17
|
+
echo This will drop %DBNAME% database on HOSTNAME
|
18
|
+
|
19
|
+
:quit
|