nlog 1.0.0.505-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- 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,35 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Text;
|
3
|
+
|
4
|
+
using NLog;
|
5
|
+
|
6
|
+
namespace MyNamespace
|
7
|
+
{
|
8
|
+
[Filter("hourRange")]
|
9
|
+
public sealed class HourRangeFilter: Filter
|
10
|
+
{
|
11
|
+
private int _fromHour = 0;
|
12
|
+
private int _toHour = -1;
|
13
|
+
|
14
|
+
public int FromHour
|
15
|
+
{
|
16
|
+
get { return _fromHour; }
|
17
|
+
set { _fromHour = value; }
|
18
|
+
|
19
|
+
}
|
20
|
+
public int ToHour
|
21
|
+
{
|
22
|
+
get { return _toHour; }
|
23
|
+
set { _toHour = value; }
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
protected override FilterResult Check(LogEventInfo ev)
|
28
|
+
{
|
29
|
+
if (ev.TimeStamp.Hour >= FromHour && ev.TimeStamp.Hour <= ToHour)
|
30
|
+
return Result;
|
31
|
+
else
|
32
|
+
return FilterResult.Neutral;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Text;
|
3
|
+
|
4
|
+
using NLog;
|
5
|
+
|
6
|
+
namespace MyNamespace
|
7
|
+
{
|
8
|
+
[LayoutRenderer("hour")]
|
9
|
+
public sealed class HourLayoutRenderer: LayoutRenderer
|
10
|
+
{
|
11
|
+
private bool _showMinutes = false;
|
12
|
+
|
13
|
+
// this is an example of a configurable parameter
|
14
|
+
public bool ShowMinutes
|
15
|
+
{
|
16
|
+
get { return _showMinutes; }
|
17
|
+
set { _showMinutes = value; }
|
18
|
+
|
19
|
+
}
|
20
|
+
protected override int GetEstimatedBufferSize(LogEventInfo ev)
|
21
|
+
{
|
22
|
+
// since hour is expressed by 2 digits we need at most 2-character
|
23
|
+
// buffer for it
|
24
|
+
return 2;
|
25
|
+
}
|
26
|
+
|
27
|
+
protected override void Append(StringBuilder builder, LogEventInfo ev)
|
28
|
+
{
|
29
|
+
// get current hour or minute, convert it to string, apply padding
|
30
|
+
// and append to the specified StringBuilder
|
31
|
+
if (ShowMinutes)
|
32
|
+
{
|
33
|
+
builder.Append(ApplyPadding(DateTime.Now.Minute.ToString()));
|
34
|
+
}
|
35
|
+
else
|
36
|
+
{
|
37
|
+
builder.Append(ApplyPadding(DateTime.Now.Hour.ToString()));
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
using NLog;
|
2
|
+
|
3
|
+
namespace MyNamespace
|
4
|
+
{
|
5
|
+
[Target("MyFirst")]
|
6
|
+
public sealed class MyFirstTarget: TargetWithLayout
|
7
|
+
{
|
8
|
+
private string _host = "localhost";
|
9
|
+
|
10
|
+
public string Host
|
11
|
+
{
|
12
|
+
get { return _host; }
|
13
|
+
set { _host = value; }
|
14
|
+
}
|
15
|
+
|
16
|
+
protected override void Write(LogEventInfo logEvent)
|
17
|
+
{
|
18
|
+
string logMessage = CompiledLayout.GetFormattedMessage(logEvent);
|
19
|
+
|
20
|
+
SendTheMessageToRemoteHost(this.Host, logMessage);
|
21
|
+
}
|
22
|
+
|
23
|
+
private void SendTheMessageToRemoteHost(string host, string message)
|
24
|
+
{
|
25
|
+
// TODO - write me
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
|
2
|
+
//
|
3
|
+
// ANSI functions
|
4
|
+
//
|
5
|
+
int NLog_ConfigureFromFileA(const char *fileName);
|
6
|
+
void NLog_LogA(NLogLevel level, const char *loggerName, const char *logMessage, ...);
|
7
|
+
void NLog_TraceA(const char *loggerName, const char *logMessage, ...);
|
8
|
+
void NLog_DebugA(const char *loggerName, const char *logMessage, ...);
|
9
|
+
void NLog_InfoA(const char *loggerName, const char *logMessage, ...);
|
10
|
+
void NLog_WarnA(const char *loggerName, const char *logMessage, ...);
|
11
|
+
void NLog_ErrorA(const char *loggerName, const char *logMessage, ...);
|
12
|
+
void NLog_FatalA(const char *loggerName, const char *logMessage, ...);
|
13
|
+
void NLog_LogVA(NLogLevel level, const char *loggerName, const char *logMessage, va_list args);
|
14
|
+
|
15
|
+
//
|
16
|
+
// Unicode functions
|
17
|
+
//
|
18
|
+
int NLog_ConfigureFromFileW(const wchar_t *fileName);
|
19
|
+
void NLog_LogW(NLogLevel level, const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
20
|
+
void NLog_TraceW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
21
|
+
void NLog_DebugW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
22
|
+
void NLog_InfoW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
23
|
+
void NLog_WarnW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
24
|
+
void NLog_ErrorW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
25
|
+
void NLog_FatalW(const wchar_t *loggerName, const wchar_t *logMessage, ...);
|
26
|
+
void NLog_LogVW(NLogLevel level, const wchar_t *loggerName, const wchar_t *logMessage, va_list args);
|
@@ -0,0 +1,28 @@
|
|
1
|
+
//
|
2
|
+
// TCHAR macros
|
3
|
+
//
|
4
|
+
#ifdef UNICODE
|
5
|
+
|
6
|
+
#define NLog_Log NLog_LogW
|
7
|
+
#define NLog_LogV NLog_LogVW
|
8
|
+
#define NLog_Trace NLog_TraceW
|
9
|
+
#define NLog_Debug NLog_DebugW
|
10
|
+
#define NLog_Info NLog_InfoW
|
11
|
+
#define NLog_Warn NLog_WarnW
|
12
|
+
#define NLog_Error NLog_ErrorW
|
13
|
+
#define NLog_Fatal NLog_FatalW
|
14
|
+
#define NLog_ConfigureFromFile NLog_ConfigureFromFileW
|
15
|
+
|
16
|
+
#else
|
17
|
+
|
18
|
+
#define NLog_Log NLog_LogA
|
19
|
+
#define NLog_LogV NLog_LogVA
|
20
|
+
#define NLog_Trace NLog_TraceA
|
21
|
+
#define NLog_Debug NLog_DebugA
|
22
|
+
#define NLog_Info NLog_InfoA
|
23
|
+
#define NLog_Warn NLog_WarnA
|
24
|
+
#define NLog_Error NLog_ErrorA
|
25
|
+
#define NLog_Fatal NLog_FatalA
|
26
|
+
#define NLog_ConfigureFromFile NLog_ConfigureFromFileA
|
27
|
+
|
28
|
+
#endif
|
@@ -0,0 +1,16 @@
|
|
1
|
+
using NLog;
|
2
|
+
|
3
|
+
class MyClass {
|
4
|
+
// storing logger reference in a static variable is clean and fast
|
5
|
+
static Logger logger = LogManager.GetLogger("MyClass");
|
6
|
+
|
7
|
+
static void Main()
|
8
|
+
{
|
9
|
+
logger.Debug("This is a debugging message");
|
10
|
+
|
11
|
+
// it is not recommended to get the logger and store it in a local variable
|
12
|
+
Logger logger2 = LogManager.GetLogger("MyClass");
|
13
|
+
logger2.Debug("This is a debugging message");
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
using NLog;
|
2
|
+
|
3
|
+
namespace Firma.Komponent
|
4
|
+
{
|
5
|
+
public class Klasa {
|
6
|
+
private static Logger logger = LogManager.GetLogger("Firma.Komponent.Klasa");
|
7
|
+
// private static Logger logger = LogManager.GetCurrentClassLogger();
|
8
|
+
|
9
|
+
static void Main()
|
10
|
+
{
|
11
|
+
logger.Info("Informacja");
|
12
|
+
logger.Warn("Ostrze�enie {0}", "testowe");
|
13
|
+
logger.Error("B��d");
|
14
|
+
logger.Fatal("B��d krytyczny");
|
15
|
+
// formatowanie w stylu Console.WriteLine()
|
16
|
+
logger.Debug("Wynik {0} {1}", 1 + 2, "zzz");
|
17
|
+
// formatowanie z u�yciem IFormatProvider
|
18
|
+
logger.Debug(CultureInfo.InvariantCulture, "Bie��ca data {0}", DateTime.Now);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
using NLog;
|
2
|
+
|
3
|
+
namespace Firma.Komponent
|
4
|
+
{
|
5
|
+
public class Klasa {
|
6
|
+
private static Logger logger = LogManager.GetLogger("Firma.Komponent.Klasa");
|
7
|
+
// private static Logger logger = LogManager.GetCurrentClassLogger();
|
8
|
+
|
9
|
+
static void Main()
|
10
|
+
{
|
11
|
+
logger.Info("Informacja");
|
12
|
+
logger.Warn("Ostrze�enie {0}", "testowe");
|
13
|
+
logger.Error("B��d");
|
14
|
+
logger.Fatal("B��d krytyczny");
|
15
|
+
|
16
|
+
// w przypadku du�ej liczby parametr�w warto sprawdzi�
|
17
|
+
// czy komunikat ma szans� by� gdziekolwiek zapisany
|
18
|
+
if (logger.IsDebugEnabled) {
|
19
|
+
int x = 3;
|
20
|
+
int y = 5;
|
21
|
+
|
22
|
+
logger.Debug("x={0}, y={1}", x, y);
|
23
|
+
}
|
24
|
+
|
25
|
+
// formatowanie w stylu Console.WriteLine()
|
26
|
+
logger.Debug("Wynik {0} {1}", 1 + 2, "zzz");
|
27
|
+
|
28
|
+
// formatowanie z u�yciem IFormatProvider
|
29
|
+
logger.Debug(CultureInfo.InvariantCulture,
|
30
|
+
"Bie��ca data {0}", DateTime.Now);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<nlog>
|
2
|
+
<targets>
|
3
|
+
<target name="codziennyPlik" type="File" layout="${longdate} ${message}" filename="${shortdate}.log" />
|
4
|
+
<target name="konsola" type="Console" />
|
5
|
+
<target name="bledy" type="File" filename="errors.log" />
|
6
|
+
<target name="bazaDanych" type="Database">
|
7
|
+
<dbprovider>mssql</dbprovider>
|
8
|
+
<dbhost>.</dbhost>
|
9
|
+
<dbdatabase>NLogDatabase</dbdatabase>
|
10
|
+
<dbusername>nloguser</dbusername>
|
11
|
+
<dbpassword>nlogpassword</dbpassword>
|
12
|
+
|
13
|
+
<commandText>
|
14
|
+
insert into LogTable(time_stamp,level,logger,message)
|
15
|
+
values(@time_stamp, @level, @logger, @message);
|
16
|
+
</commandText>
|
17
|
+
|
18
|
+
<parameter name="@time_stamp" layout="${date}" />
|
19
|
+
<parameter name="@level" layout="${level}" />
|
20
|
+
<parameter name="@logger" layout="${logger}" />
|
21
|
+
<parameter name="@message" layout="${message}" />
|
22
|
+
</target>
|
23
|
+
</targets>
|
24
|
+
</nlog>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<rules>
|
2
|
+
<logger name="FooBar*" minlevel="Trace" writeTo="" final="true" />
|
3
|
+
<logger name="*" levels="Warn,Error" writeTo="bledy,bazaDanych" />
|
4
|
+
<logger name="Gizmo*" minlevel="Info" writeTo="bazaDanych" />
|
5
|
+
<logger name="*" minlevel="Info" writeTo="codziennyPlik" />
|
6
|
+
<logger name="*" minlevel="Trace" writeTo="konsola" />
|
7
|
+
</rules>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#if LOG4NET
|
2
|
+
ILog logger = LogManager.GetLogger("somelogger");
|
3
|
+
#else
|
4
|
+
Logger logger = LogManager.GetLogger("somelogger");
|
5
|
+
#endif
|
6
|
+
|
7
|
+
// Case 1. No formatting:
|
8
|
+
logger.Debug("This is a message without formatting.");
|
9
|
+
|
10
|
+
// Case 2. One format parameter
|
11
|
+
#if LOG4NET
|
12
|
+
logger.Debug(String.Format("This is a message with {0} format parameter", 1));
|
13
|
+
#else
|
14
|
+
logger.Debug("This is a message with {0} format parameter", 1);
|
15
|
+
#endif
|
16
|
+
|
17
|
+
// Case 3. Two format parameters
|
18
|
+
#if LOG4NET
|
19
|
+
logger.Debug(String.Format("This is a message with {0}{1} parameters", 2, "o"));
|
20
|
+
#else
|
21
|
+
logger.Debug("This is a message with {0}{1} parameters", 2, "o");
|
22
|
+
#endif
|
23
|
+
|
24
|
+
// Case 4. Three format parameters
|
25
|
+
#if LOG4NET
|
26
|
+
logger.Debug(String.Format("This is a message with {0}{1}{2} parameters", "thr", 3, 3));
|
27
|
+
#else
|
28
|
+
logger.Debug("This is a message with {0}{1}{2} parameters", "thr", 3, 3);
|
29
|
+
#endif
|
30
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Logger logger = LogManager.GetLogger("somelogger");
|
2
|
+
|
3
|
+
// Case 1. No formatting
|
4
|
+
logger.Debug("This is a message without formatting.");
|
5
|
+
|
6
|
+
// Case 2. One format parameter
|
7
|
+
logger.Debug("This is a message with {0} format parameter", 1);
|
8
|
+
|
9
|
+
// Case 3. Two format parameters
|
10
|
+
logger.Debug("This is a message with {0}{1} parameters", 2, "o");
|
11
|
+
|
12
|
+
// Case 4. Three format parameters
|
13
|
+
logger.Debug("This is a message with {0}{1}{2} parameters", "thr", 3, 3);
|
14
|
+
|
15
|
+
// Case 1a. No formatting, using a guard.
|
16
|
+
if (logger.IsDebugEnabled)
|
17
|
+
logger.Debug("This is a message without formatting.");
|
18
|
+
|
19
|
+
// Case 2a. One format parameter, using a guard.
|
20
|
+
if (logger.IsDebugEnabled)
|
21
|
+
logger.Debug("This is a message with {0} format parameter", 1);
|
22
|
+
|
23
|
+
// Case 3a. Two format parameters, using a guard.
|
24
|
+
if (logger.IsDebugEnabled)
|
25
|
+
logger.Debug("This is a message with {0}{1} parameters", 2, "o");
|
26
|
+
|
27
|
+
// Case 4a. Three format parameters, using a guard.
|
28
|
+
if (logger.IsDebugEnabled)
|
29
|
+
logger.Debug("This is a message with {0}{1}{2} parameters", "thr", 3, 3);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog>
|
3
|
+
<extensions>
|
4
|
+
<add assembly="MyAssembly" />
|
5
|
+
</extensions>
|
6
|
+
|
7
|
+
<targets>
|
8
|
+
<target name="console" type="Console" />
|
9
|
+
</targets>
|
10
|
+
|
11
|
+
<rules>
|
12
|
+
<logger name="*" minLevel="Info" appendTo="console">
|
13
|
+
<filters>
|
14
|
+
<hourRange fromHour="10" toHour="12" action="Ignore" />
|
15
|
+
</filters>
|
16
|
+
</logger>
|
17
|
+
</rules>
|
18
|
+
</nlog>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog>
|
3
|
+
<targets>
|
4
|
+
<target name="file" type="File" filename="${basedir}/logs/logfile.txt"
|
5
|
+
layout="${longdate} ${level:uppercase=true} ${logger} ${aspnet-session:variable=UserName} ${threadid} ${callsite} ${message}" />
|
6
|
+
<target name="trace" type="ASPNetTrace"
|
7
|
+
layout="${level:uppercase=true} ${callsite} ${message}" />
|
8
|
+
</targets>
|
9
|
+
|
10
|
+
<rules>
|
11
|
+
<logger name="*" minLevel="Info" appendTo="trace" />
|
12
|
+
<logger name="*" minLevel="Debug" appendTo="file" />
|
13
|
+
</rules>
|
14
|
+
</nlog>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<nlog>
|
3
|
+
<targets>
|
4
|
+
<target name="console" type="Console" />
|
5
|
+
<target name="file1" type="File" filename="file1.log" />
|
6
|
+
<target name="file2" type="File" filename="file2.log" />
|
7
|
+
<target name="file3" type="File" filename="file3.log" />
|
8
|
+
</targets>
|
9
|
+
|
10
|
+
<rules>
|
11
|
+
<!-- SQL messages to file3.log but nowhere else-->
|
12
|
+
<logger name="*SQL*" appendTo="file3" final="true" />
|
13
|
+
|
14
|
+
<!-- Info and Error messages go to the console and file1.log -->
|
15
|
+
<logger levels="Info,Error" appendTo="console,file1" />
|
16
|
+
|
17
|
+
<!-- log all Debug messages to file1.log -->
|
18
|
+
<logger name="*" level="Debug" appendTo="file1" />
|
19
|
+
|
20
|
+
<!-- log error and fatal messages to file2.log -->
|
21
|
+
<logger name="*" minlevel="Error" appendTo="file2" />
|
22
|
+
</rules>
|
23
|
+
</nlog>
|
24
|
+
|