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,33 @@
|
|
1
|
+
using System.Reflection;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using System.Runtime.InteropServices;
|
4
|
+
|
5
|
+
// General Information about an assembly is controlled through the following
|
6
|
+
// set of attributes. Change these attribute values to modify the information
|
7
|
+
// associated with an assembly.
|
8
|
+
[assembly: AssemblyTitle("LoggerWrapper")]
|
9
|
+
[assembly: AssemblyDescription("")]
|
10
|
+
[assembly: AssemblyConfiguration("")]
|
11
|
+
[assembly: AssemblyCompany("")]
|
12
|
+
[assembly: AssemblyProduct("LoggerWrapper")]
|
13
|
+
[assembly: AssemblyCopyright("Copyright © Jaroslaw Kowalski 2006")]
|
14
|
+
[assembly: AssemblyTrademark("")]
|
15
|
+
[assembly: AssemblyCulture("")]
|
16
|
+
|
17
|
+
// Setting ComVisible to false makes the types in this assembly not visible
|
18
|
+
// to COM components. If you need to access a type in this assembly from
|
19
|
+
// COM, set the ComVisible attribute to true on that type.
|
20
|
+
[assembly: ComVisible(false)]
|
21
|
+
|
22
|
+
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
23
|
+
[assembly: Guid("7d6322a9-8f43-4ca5-bc1e-a5b53cf64706")]
|
24
|
+
|
25
|
+
// Version information for an assembly consists of the following four values:
|
26
|
+
//
|
27
|
+
// Major Version
|
28
|
+
// Minor Version
|
29
|
+
// Build Number
|
30
|
+
// Revision
|
31
|
+
//
|
32
|
+
[assembly: AssemblyVersion("1.0.0.0")]
|
33
|
+
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>NLog Examples</title>
|
4
|
+
<style type="text/css">
|
5
|
+
body
|
6
|
+
{
|
7
|
+
font-family: Tahoma;
|
8
|
+
font-size: 10pt;
|
9
|
+
}
|
10
|
+
</style>
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<p>
|
14
|
+
This directory contains examples of extending functionality of loggers. This is needed to pass
|
15
|
+
extra per-call context information to the logging engine. For example, you can pass log event ID
|
16
|
+
that will be written to the Event Log.
|
17
|
+
</p>
|
18
|
+
<p>
|
19
|
+
There are 2 methods of extending loggers:
|
20
|
+
</p>
|
21
|
+
<ul>
|
22
|
+
<li><b>wrapping loggers</b> - the code that wraps Logger is located in the <a href="LoggerWrapper/">LoggerWrapper</a> directory.</li>
|
23
|
+
<li><b>inheriting from loggers</b> - the code that extends the Logger class by inheriting from it can be found in the <a href="InheritFromLogger/">InheritFromLogger</a> directory.</li>
|
24
|
+
</ul>
|
25
|
+
<p>
|
26
|
+
Both methods construct a <code>LogEventInfo</code> object and pass it to the Log() method of the logger. It is important
|
27
|
+
to also pass the declaring type of the method that is invoked by user code, otherwise the <a href="http://www.nlog-project.org/lr.callsite.html">${callsite}</a>
|
28
|
+
and <a href="http://www.nlog-project.org/lr.stacktrace.html">${stacktrace}</a> layout renderers won't work properly.
|
29
|
+
</p>
|
30
|
+
<p>
|
31
|
+
The examples also demonstrate is the technique of passing additional per-log context information. This is
|
32
|
+
done by adding items to the <code>LogEvent.Context</code> dictionary. This context data can be retrieved
|
33
|
+
and used in layouts with the <code>${event-context}</code> layout renderer.
|
34
|
+
</p>
|
35
|
+
<p>
|
36
|
+
The examples are compatible with <a href="http://www.microsoft.com/vstudio">Visual Studio 2005</a> and can be built with <a href="http://msdn2.microsoft.com/en-us/library/wea2sca5.aspx">MSBuild</a>.
|
37
|
+
</p>
|
38
|
+
</body>
|
39
|
+
</html>
|
data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.csproj
ADDED
@@ -0,0 +1,95 @@
|
|
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>{18041F69-4814-447B-B170-984E72423D4A}</ProjectGuid>
|
8
|
+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
9
|
+
<OutputType>Library</OutputType>
|
10
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
11
|
+
<RootNamespace>ASPNetBufferingWrapper</RootNamespace>
|
12
|
+
<AssemblyName>ASPNetBufferingWrapper</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="NLog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
33
|
+
<SpecificVersion>False</SpecificVersion>
|
34
|
+
</Reference>
|
35
|
+
<Reference Include="System" />
|
36
|
+
<Reference Include="System.Data" />
|
37
|
+
<Reference Include="System.Drawing" />
|
38
|
+
<Reference Include="System.Web" />
|
39
|
+
<Reference Include="System.Xml" />
|
40
|
+
<Reference Include="System.Configuration" />
|
41
|
+
<Reference Include="System.Web.Services" />
|
42
|
+
<Reference Include="System.EnterpriseServices" />
|
43
|
+
<Reference Include="System.Web.Mobile" />
|
44
|
+
</ItemGroup>
|
45
|
+
<ItemGroup>
|
46
|
+
<Content Include="Global.asax" />
|
47
|
+
<Content Include="NormalPage.aspx" />
|
48
|
+
<Content Include="PageWithWarnings.aspx" />
|
49
|
+
<Content Include="Web.config" />
|
50
|
+
</ItemGroup>
|
51
|
+
<ItemGroup>
|
52
|
+
<Compile Include="Global.asax.cs">
|
53
|
+
<DependentUpon>Global.asax</DependentUpon>
|
54
|
+
</Compile>
|
55
|
+
<Compile Include="NormalPage.aspx.cs">
|
56
|
+
<SubType>ASPXCodeBehind</SubType>
|
57
|
+
<DependentUpon>NormalPage.aspx</DependentUpon>
|
58
|
+
</Compile>
|
59
|
+
<Compile Include="NormalPage.aspx.designer.cs">
|
60
|
+
<DependentUpon>NormalPage.aspx</DependentUpon>
|
61
|
+
</Compile>
|
62
|
+
<Compile Include="PageWithWarnings.aspx.cs">
|
63
|
+
<SubType>ASPXCodeBehind</SubType>
|
64
|
+
<DependentUpon>PageWithWarnings.aspx</DependentUpon>
|
65
|
+
</Compile>
|
66
|
+
<Compile Include="PageWithWarnings.aspx.designer.cs">
|
67
|
+
<DependentUpon>PageWithWarnings.aspx</DependentUpon>
|
68
|
+
</Compile>
|
69
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
70
|
+
</ItemGroup>
|
71
|
+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
72
|
+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
|
73
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
74
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
75
|
+
<Target Name="BeforeBuild">
|
76
|
+
</Target>
|
77
|
+
<Target Name="AfterBuild">
|
78
|
+
</Target>
|
79
|
+
-->
|
80
|
+
<ProjectExtensions>
|
81
|
+
<VisualStudio>
|
82
|
+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
83
|
+
<WebProjectProperties>
|
84
|
+
<UseIIS>False</UseIIS>
|
85
|
+
<AutoAssignPort>True</AutoAssignPort>
|
86
|
+
<DevelopmentServerPort>4778</DevelopmentServerPort>
|
87
|
+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
88
|
+
<IISUrl>
|
89
|
+
</IISUrl>
|
90
|
+
<NTLMAuthentication>False</NTLMAuthentication>
|
91
|
+
</WebProjectProperties>
|
92
|
+
</FlavorProperties>
|
93
|
+
</VisualStudio>
|
94
|
+
</ProjectExtensions>
|
95
|
+
</Project>
|
data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.sln
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
Microsoft Visual Studio Solution File, Format Version 9.00
|
3
|
+
# Visual Studio 2005
|
4
|
+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASPNetBufferingWrapper", "ASPNetBufferingWrapper.csproj", "{18041F69-4814-447B-B170-984E72423D4A}"
|
5
|
+
EndProject
|
6
|
+
Global
|
7
|
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
8
|
+
Debug|Any CPU = Debug|Any CPU
|
9
|
+
Release|Any CPU = Release|Any CPU
|
10
|
+
EndGlobalSection
|
11
|
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
12
|
+
{18041F69-4814-447B-B170-984E72423D4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
13
|
+
{18041F69-4814-447B-B170-984E72423D4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
14
|
+
{18041F69-4814-447B-B170-984E72423D4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
15
|
+
{18041F69-4814-447B-B170-984E72423D4A}.Release|Any CPU.Build.0 = Release|Any CPU
|
16
|
+
EndGlobalSection
|
17
|
+
GlobalSection(SolutionProperties) = preSolution
|
18
|
+
HideSolutionNode = FALSE
|
19
|
+
EndGlobalSection
|
20
|
+
EndGlobal
|
@@ -0,0 +1 @@
|
|
1
|
+
<%@ Application Codebehind="Global.asax.cs" Inherits="ASPNetBufferingWrapper.Global" Language="C#" %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Data;
|
3
|
+
using System.Configuration;
|
4
|
+
using System.Collections;
|
5
|
+
using System.Web;
|
6
|
+
using System.Web.Security;
|
7
|
+
using System.Web.SessionState;
|
8
|
+
using NLog.Targets.Wrappers;
|
9
|
+
using NLog.Targets;
|
10
|
+
using NLog.Config;
|
11
|
+
using NLog;
|
12
|
+
|
13
|
+
namespace ASPNetBufferingWrapper
|
14
|
+
{
|
15
|
+
public class Global : System.Web.HttpApplication
|
16
|
+
{
|
17
|
+
protected void Application_Start(object sender, EventArgs e)
|
18
|
+
{
|
19
|
+
FileTarget fileTarget = new FileTarget();
|
20
|
+
fileTarget.FileName = "${basedir}/logfile.txt";
|
21
|
+
|
22
|
+
PostFilteringTargetWrapper postfilteringTarget = new PostFilteringTargetWrapper();
|
23
|
+
ASPNetBufferingTargetWrapper aspnetBufferingTarget = new ASPNetBufferingTargetWrapper();
|
24
|
+
aspnetBufferingTarget.WrappedTarget = postfilteringTarget;
|
25
|
+
postfilteringTarget.WrappedTarget = fileTarget;
|
26
|
+
|
27
|
+
postfilteringTarget.DefaultFilter = "level >= LogLevel.Info";
|
28
|
+
FilteringRule rule = new FilteringRule();
|
29
|
+
rule.Exists = "level >= LogLevel.Warn";
|
30
|
+
rule.Filter = "level >= LogLevel.Debug";
|
31
|
+
postfilteringTarget.Rules.Add(rule);
|
32
|
+
|
33
|
+
SimpleConfigurator.ConfigureForTargetLogging(aspnetBufferingTarget, LogLevel.Debug);
|
34
|
+
}
|
35
|
+
|
36
|
+
protected void Application_End(object sender, EventArgs e)
|
37
|
+
{
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NormalPage.aspx.cs" Inherits="ASPNetBufferingWrapper.NormalPage" %>
|
2
|
+
|
3
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" >
|
6
|
+
<head runat="server">
|
7
|
+
<title>Untitled Page</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<form id="form1" runat="server">
|
11
|
+
<div>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
</form>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Data;
|
3
|
+
using System.Configuration;
|
4
|
+
using System.Collections;
|
5
|
+
using System.Web;
|
6
|
+
using System.Web.Security;
|
7
|
+
using System.Web.UI;
|
8
|
+
using System.Web.UI.WebControls;
|
9
|
+
using System.Web.UI.WebControls.WebParts;
|
10
|
+
using System.Web.UI.HtmlControls;
|
11
|
+
|
12
|
+
namespace ASPNetBufferingWrapper
|
13
|
+
{
|
14
|
+
public partial class NormalPage : System.Web.UI.Page
|
15
|
+
{
|
16
|
+
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
|
17
|
+
|
18
|
+
protected void Page_Load(object sender, EventArgs e)
|
19
|
+
{
|
20
|
+
// This page simulates correct flow, no warnings are emitted
|
21
|
+
// This causes the postfiltering wrapper to emit only the Info messages
|
22
|
+
|
23
|
+
logger.Info("info1");
|
24
|
+
logger.Debug("some debug message");
|
25
|
+
logger.Debug("some other debug message");
|
26
|
+
logger.Debug("yet another other debug message");
|
27
|
+
logger.Info("info2");
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
//------------------------------------------------------------------------------
|
2
|
+
// <auto-generated>
|
3
|
+
// This code was generated by a tool.
|
4
|
+
// Runtime Version:2.0.50727.42
|
5
|
+
//
|
6
|
+
// Changes to this file may cause incorrect behavior and will be lost if
|
7
|
+
// the code is regenerated.
|
8
|
+
// </auto-generated>
|
9
|
+
//------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
namespace ASPNetBufferingWrapper
|
12
|
+
{
|
13
|
+
|
14
|
+
public partial class NormalPage
|
15
|
+
{
|
16
|
+
protected System.Web.UI.HtmlControls.HtmlForm form1;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageWithWarnings.aspx.cs" Inherits="ASPNetBufferingWrapper.PageWithWarnings" %>
|
2
|
+
|
3
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" >
|
6
|
+
<head runat="server">
|
7
|
+
<title>Untitled Page</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<form id="form1" runat="server">
|
11
|
+
<div>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
</form>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Data;
|
3
|
+
using System.Configuration;
|
4
|
+
using System.Collections;
|
5
|
+
using System.Web;
|
6
|
+
using System.Web.Security;
|
7
|
+
using System.Web.UI;
|
8
|
+
using System.Web.UI.WebControls;
|
9
|
+
using System.Web.UI.WebControls.WebParts;
|
10
|
+
using System.Web.UI.HtmlControls;
|
11
|
+
|
12
|
+
namespace ASPNetBufferingWrapper
|
13
|
+
{
|
14
|
+
public partial class PageWithWarnings : System.Web.UI.Page
|
15
|
+
{
|
16
|
+
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
|
17
|
+
|
18
|
+
protected void Page_Load(object sender, EventArgs e)
|
19
|
+
{
|
20
|
+
// This page simulates a page with some warning
|
21
|
+
// This causes the postfiltering wrapper to emit all the messages, including
|
22
|
+
// debug ones.
|
23
|
+
|
24
|
+
logger.Info("info1");
|
25
|
+
logger.Debug("some debug message");
|
26
|
+
logger.Debug("some other debug message");
|
27
|
+
logger.Debug("yet another other debug message");
|
28
|
+
logger.Warn("warning!");
|
29
|
+
logger.Info("info2");
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
//------------------------------------------------------------------------------
|
2
|
+
// <auto-generated>
|
3
|
+
// This code was generated by a tool.
|
4
|
+
// Runtime Version:2.0.50727.42
|
5
|
+
//
|
6
|
+
// Changes to this file may cause incorrect behavior and will be lost if
|
7
|
+
// the code is regenerated.
|
8
|
+
// </auto-generated>
|
9
|
+
//------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
namespace ASPNetBufferingWrapper
|
12
|
+
{
|
13
|
+
|
14
|
+
public partial class PageWithWarnings
|
15
|
+
{
|
16
|
+
protected System.Web.UI.HtmlControls.HtmlForm form1;
|
17
|
+
}
|
18
|
+
}
|
data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Properties/AssemblyInfo.cs
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
using System.Reflection;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using System.Runtime.InteropServices;
|
4
|
+
|
5
|
+
[assembly: AssemblyTitle("ASPNetBufferingWrapper")]
|
6
|
+
[assembly: AssemblyDescription("")]
|
7
|
+
[assembly: AssemblyConfiguration("")]
|
8
|
+
[assembly: ComVisible(false)]
|
9
|
+
[assembly: AssemblyVersion("1.0.0.0")]
|
10
|
+
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
|
3
|
+
<configuration>
|
4
|
+
|
5
|
+
<appSettings/>
|
6
|
+
<connectionStrings/>
|
7
|
+
|
8
|
+
<system.web>
|
9
|
+
<compilation debug="true" />
|
10
|
+
<authentication mode="Windows" />
|
11
|
+
<trace enabled="true"/>
|
12
|
+
|
13
|
+
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
14
|
+
<error statusCode="403" redirect="NoAccess.htm" />
|
15
|
+
<error statusCode="404" redirect="FileNotFound.htm" />
|
16
|
+
</customErrors>
|
17
|
+
|
18
|
+
<httpModules>
|
19
|
+
<add name="NLog" type="NLog.Web.NLogHttpModule, NLog"/>
|
20
|
+
</httpModules>
|
21
|
+
</system.web>
|
22
|
+
</configuration>
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2
|
+
<PropertyGroup>
|
3
|
+
<ProductVersion>8.0.50727</ProductVersion>
|
4
|
+
<SchemaVersion>2.0</SchemaVersion>
|
5
|
+
<ProjectGuid>{C7BA2451-7027-4838-BD3B-02DC5DCD8CB5}</ProjectGuid>
|
6
|
+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
7
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
8
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
9
|
+
<ApplicationIcon>
|
10
|
+
</ApplicationIcon>
|
11
|
+
<AssemblyKeyContainerName>
|
12
|
+
</AssemblyKeyContainerName>
|
13
|
+
<AssemblyName>ASPNetTraceTest</AssemblyName>
|
14
|
+
<AssemblyOriginatorKeyFile>
|
15
|
+
</AssemblyOriginatorKeyFile>
|
16
|
+
<DefaultClientScript>JScript</DefaultClientScript>
|
17
|
+
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
18
|
+
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
19
|
+
<DelaySign>false</DelaySign>
|
20
|
+
<OutputType>Library</OutputType>
|
21
|
+
<RootNamespace>ASPNetTraceTest</RootNamespace>
|
22
|
+
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
23
|
+
<StartupObject>
|
24
|
+
</StartupObject>
|
25
|
+
<FileUpgradeFlags>
|
26
|
+
</FileUpgradeFlags>
|
27
|
+
<UpgradeBackupLocation>
|
28
|
+
</UpgradeBackupLocation>
|
29
|
+
</PropertyGroup>
|
30
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
31
|
+
<OutputPath>bin\</OutputPath>
|
32
|
+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
33
|
+
<BaseAddress>285212672</BaseAddress>
|
34
|
+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
35
|
+
<ConfigurationOverrideFile>
|
36
|
+
</ConfigurationOverrideFile>
|
37
|
+
<DefineConstants>
|
38
|
+
</DefineConstants>
|
39
|
+
<DocumentationFile>
|
40
|
+
</DocumentationFile>
|
41
|
+
<DebugSymbols>true</DebugSymbols>
|
42
|
+
<FileAlignment>4096</FileAlignment>
|
43
|
+
<NoStdLib>false</NoStdLib>
|
44
|
+
<NoWarn>
|
45
|
+
</NoWarn>
|
46
|
+
<Optimize>false</Optimize>
|
47
|
+
<RegisterForComInterop>false</RegisterForComInterop>
|
48
|
+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
49
|
+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
50
|
+
<WarningLevel>1</WarningLevel>
|
51
|
+
<DebugType>full</DebugType>
|
52
|
+
<ErrorReport>prompt</ErrorReport>
|
53
|
+
</PropertyGroup>
|
54
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
55
|
+
<OutputPath>bin\</OutputPath>
|
56
|
+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
57
|
+
<BaseAddress>285212672</BaseAddress>
|
58
|
+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
59
|
+
<ConfigurationOverrideFile>
|
60
|
+
</ConfigurationOverrideFile>
|
61
|
+
<DefineConstants>
|
62
|
+
</DefineConstants>
|
63
|
+
<DocumentationFile>
|
64
|
+
</DocumentationFile>
|
65
|
+
<DebugSymbols>false</DebugSymbols>
|
66
|
+
<FileAlignment>4096</FileAlignment>
|
67
|
+
<NoStdLib>false</NoStdLib>
|
68
|
+
<NoWarn>
|
69
|
+
</NoWarn>
|
70
|
+
<Optimize>false</Optimize>
|
71
|
+
<RegisterForComInterop>false</RegisterForComInterop>
|
72
|
+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
73
|
+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
74
|
+
<WarningLevel>1</WarningLevel>
|
75
|
+
<DebugType>none</DebugType>
|
76
|
+
<ErrorReport>prompt</ErrorReport>
|
77
|
+
</PropertyGroup>
|
78
|
+
<ItemGroup>
|
79
|
+
<Reference Include="NLog">
|
80
|
+
<SpecificVersion>False</SpecificVersion>
|
81
|
+
</Reference>
|
82
|
+
<Reference Include="System">
|
83
|
+
<Name>System</Name>
|
84
|
+
</Reference>
|
85
|
+
<Reference Include="System.Data">
|
86
|
+
<Name>System.Data</Name>
|
87
|
+
</Reference>
|
88
|
+
<Reference Include="System.Drawing">
|
89
|
+
<Name>System.Drawing</Name>
|
90
|
+
</Reference>
|
91
|
+
<Reference Include="System.Web">
|
92
|
+
<Name>System.Web</Name>
|
93
|
+
</Reference>
|
94
|
+
<Reference Include="System.Xml">
|
95
|
+
<Name>System.Xml</Name>
|
96
|
+
</Reference>
|
97
|
+
</ItemGroup>
|
98
|
+
<ItemGroup>
|
99
|
+
<Content Include="global.asax" />
|
100
|
+
<Content Include="test.aspx" />
|
101
|
+
<Content Include="web.config" />
|
102
|
+
<Compile Include="Global.asax.cs">
|
103
|
+
<DependentUpon>global.asax</DependentUpon>
|
104
|
+
<SubType>Code</SubType>
|
105
|
+
</Compile>
|
106
|
+
</ItemGroup>
|
107
|
+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
108
|
+
<PropertyGroup>
|
109
|
+
<PreBuildEvent>
|
110
|
+
</PreBuildEvent>
|
111
|
+
<PostBuildEvent>
|
112
|
+
</PostBuildEvent>
|
113
|
+
</PropertyGroup>
|
114
|
+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" />
|
115
|
+
<ProjectExtensions>
|
116
|
+
<VisualStudio>
|
117
|
+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
118
|
+
<WebProjectProperties>
|
119
|
+
<UseIIS>False</UseIIS>
|
120
|
+
<AutoAssignPort>True</AutoAssignPort>
|
121
|
+
<DevelopmentServerPort>3698</DevelopmentServerPort>
|
122
|
+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
123
|
+
<IISUrl>
|
124
|
+
</IISUrl>
|
125
|
+
<NTLMAuthentication>False</NTLMAuthentication>
|
126
|
+
</WebProjectProperties>
|
127
|
+
</FlavorProperties>
|
128
|
+
</VisualStudio>
|
129
|
+
</ProjectExtensions>
|
130
|
+
</Project>
|