├── examples ├── NLogDemo │ ├── gmailpassword.txt │ ├── gmailusername.txt │ ├── NLog.png │ ├── style.css │ └── Web.config ├── NLogSilverlightApp │ ├── NLog.config │ ├── Properties │ │ └── AppManifest.xml │ ├── App.xaml │ ├── MainPage.xaml │ └── MainPage.xaml.cs ├── web │ ├── article1.cs │ ├── article2.cs │ ├── config1.nlog │ ├── config2.nlog │ ├── config12.nlog │ ├── AddFilter.cs │ ├── AddTarget.cs │ ├── AddLayoutRenderer.cs │ ├── config8.nlog │ ├── GetLogger.cs │ ├── config8a.nlog │ ├── GetCurrentClassLogger.cs │ ├── article3.nlog │ ├── article4.nlog │ ├── app.config │ ├── config7.nlog │ ├── article6.nlog │ ├── config9.nlog │ ├── config5.nlog │ ├── config10.nlog │ ├── Performance.cs │ ├── config11.nlog │ ├── NLogCdef.cpp │ ├── MyFirstTarget.cs │ ├── config4.nlog │ ├── config6.nlog │ ├── MyFirstFilter.cs │ ├── config3.nlog │ └── benchmark_log4net.cs ├── targets │ ├── Configuration API │ │ ├── ASPNetTrace │ │ │ ├── global.asax │ │ │ ├── README.txt │ │ │ ├── web.config │ │ │ ├── test.aspx │ │ │ ├── Global.asax.cs │ │ │ └── ASPNetTraceTest.sln │ │ ├── WebService │ │ │ └── Simple │ │ │ │ └── WebService1 │ │ │ │ ├── Service1.asmx │ │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ │ └── Service1.asmx.cs │ │ ├── ASPNetBufferingWrapper │ │ │ ├── Global.asax │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── NormalPage.aspx │ │ │ ├── PageWithWarnings.aspx │ │ │ ├── NormalPage.aspx.designer.cs │ │ │ ├── PageWithWarnings.aspx.designer.cs │ │ │ └── Web.config │ │ ├── FormControl │ │ │ ├── Properties │ │ │ │ └── Settings.settings │ │ │ ├── Example.cs │ │ │ └── FormControl.sln │ │ ├── RichTextBox │ │ │ ├── Simple │ │ │ │ ├── Properties │ │ │ │ │ └── Settings.settings │ │ │ │ ├── Example.cs │ │ │ │ └── RichTextBox.sln │ │ │ ├── RowColoring │ │ │ │ ├── Properties │ │ │ │ │ └── Settings.settings │ │ │ │ └── Example.cs │ │ │ └── WordColoring │ │ │ │ ├── Properties │ │ │ │ └── Settings.settings │ │ │ │ └── Example.cs │ │ ├── Debugger │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Debugger.sln │ │ ├── Console │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Console.sln │ │ ├── Null │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Null.sln │ │ ├── OutputDebugString │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── MessageBox │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── MessageBox.sln │ │ ├── Trace │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Trace.sln │ │ ├── Memory │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Memory.sln │ │ ├── EventLog │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── EventLog.sln │ │ ├── File │ │ │ ├── Multiple │ │ │ │ ├── Example.cs │ │ │ │ └── File.Multiple.sln │ │ │ ├── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── File.sln │ │ │ ├── Multiple2 │ │ │ │ ├── Example.cs │ │ │ │ └── File.Multiple2.sln │ │ │ ├── Asynchronous │ │ │ │ └── Example.cs │ │ │ ├── CSV │ │ │ │ ├── Example.cs │ │ │ │ └── File.CSV.sln │ │ │ ├── Archive1 │ │ │ │ └── File.Archive1.sln │ │ │ ├── Archive2 │ │ │ │ └── File.Archive2.sln │ │ │ ├── Archive3 │ │ │ │ └── File.Archive3.sln │ │ │ └── Archive4 │ │ │ │ └── File.Archive4.sln │ │ ├── Chainsaw │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Chainsaw.sln │ │ ├── NLogViewer │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── NLogViewer.sln │ │ ├── AutoFlushWrapper │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── Debug │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Debug.sln │ │ ├── RepeatingWrapper │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── BufferingWrapper │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── ColoredConsole │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── Network │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── Network.sln │ │ ├── PerfCounter │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── PerfCounter.sln │ │ ├── RetryingWrapper │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── SplitGroup │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── SplitGroup.sln │ │ ├── RandomizeGroup │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── RoundRobinGroup │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── Template.sln │ │ ├── FilteringWrapper │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── MethodCall │ │ │ └── Simple │ │ │ │ ├── Example.cs │ │ │ │ └── MethodCall.sln │ │ ├── FallbackGroup │ │ │ └── Simple │ │ │ │ └── Example.cs │ │ ├── AsyncWrapper │ │ │ └── Wrapping File │ │ │ │ └── Example.cs │ │ ├── MSMQ │ │ │ └── Simple │ │ │ │ └── MSMQ.sln │ │ ├── Mail │ │ │ ├── Simple │ │ │ │ ├── Mail.sln │ │ │ │ └── Example.cs │ │ │ └── Buffered │ │ │ │ └── Mail.Buffered.sln │ │ └── Database │ │ │ └── MSSQL │ │ │ └── Database.MSSQL.sln │ ├── Screenshots │ │ ├── Network │ │ │ └── Output.gif │ │ ├── RichTextBox │ │ │ ├── Simple.gif │ │ │ ├── RowColoring.gif │ │ │ └── WordColoring.gif │ │ ├── ColoredConsole │ │ │ ├── Simple.gif │ │ │ ├── Row Highlighting.gif │ │ │ └── Word Highlighting.gif │ │ ├── FormControl │ │ │ └── FormControl.gif │ │ ├── MessageBox │ │ │ └── MessageBoxTarget.gif │ │ └── ASPNetTrace │ │ │ ├── ASPNetTraceOutput1.gif │ │ │ └── ASPNetTraceOutput2.gif │ └── Configuration File │ │ ├── Database │ │ └── MSSQL │ │ │ ├── drop_nlog_database.sql │ │ │ ├── drop_nlog_database.bat │ │ │ ├── create_nlog_database.bat │ │ │ └── create_nlog_database.sql │ │ ├── WebService │ │ ├── WebService1 │ │ │ ├── Service1.asmx │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ ├── Service1.asmx.cs │ │ │ └── WebService1.sln │ │ └── NLog.config │ │ ├── Trace │ │ └── NLog.config │ │ ├── Debug │ │ └── NLog.config │ │ ├── Memory │ │ └── NLog.config │ │ ├── Debugger │ │ └── NLog.config │ │ ├── Null │ │ └── NLog.config │ │ ├── ASPNetTrace │ │ └── web.nlog │ │ ├── OutputDebugString │ │ └── NLog.config │ │ ├── Chainsaw │ │ └── NLog.config │ │ ├── NLogViewer │ │ └── NLog.config │ │ ├── Console │ │ └── NLog.config │ │ ├── MessageBox │ │ └── NLog.config │ │ ├── EventLog │ │ └── NLog.config │ │ ├── Network │ │ └── NLog.config │ │ ├── FormControl │ │ └── NLog.config │ │ ├── ColoredConsole │ │ ├── Simple │ │ │ └── NLog.config │ │ ├── Word Highlighting │ │ │ └── NLog.config │ │ └── Row Highlighting │ │ │ └── NLog.config │ │ ├── AutoFlushWrapper │ │ └── NLog.config │ │ ├── File │ │ ├── Multiple │ │ │ └── NLog.config │ │ ├── Multiple2 │ │ │ └── NLog.config │ │ ├── Simple │ │ │ └── NLog.config │ │ ├── Asynchronous │ │ │ └── NLog.config │ │ ├── CSV │ │ │ └── NLog.config │ │ ├── Archive2 │ │ │ └── NLog.config │ │ ├── Archive1 │ │ │ └── NLog.config │ │ ├── Archive3 │ │ │ └── NLog.config │ │ └── Archive4 │ │ │ └── NLog.config │ │ ├── BufferingWrapper │ │ └── NLog.config │ │ ├── RepeatingWrapper │ │ └── NLog.config │ │ ├── RichTextBox │ │ ├── Simple │ │ │ └── NLog.config │ │ ├── WordColoring │ │ │ └── NLog.config │ │ └── RowColoring │ │ │ └── NLog.config │ │ ├── PerfCounter │ │ └── NLog.config │ │ ├── FilteringWrapper │ │ └── NLog.config │ │ ├── RetryingWrapper │ │ └── NLog.config │ │ ├── Mail │ │ ├── Simple │ │ │ └── NLog.config │ │ └── Buffered │ │ │ └── NLog.config │ │ ├── MethodCall │ │ └── NLog.config │ │ ├── SplitGroup │ │ └── NLog.config │ │ ├── RandomizeGroup │ │ └── NLog.config │ │ ├── RoundRobinGroup │ │ └── NLog.config │ │ ├── MSMQ │ │ ├── Simple │ │ │ └── NLog.config │ │ └── Multiple │ │ │ └── NLog.config │ │ ├── FallbackGroup │ │ └── NLog.config │ │ ├── AsyncWrapper │ │ └── NLog.config │ │ ├── ASPNetBufferingWrapper │ │ └── web.nlog │ │ └── PostFilteringWrapper │ │ └── NLog.config ├── NLogWindowsPhoneApplication │ ├── Background.png │ ├── ApplicationIcon.png │ ├── SplashScreenImage.jpg │ ├── Properties │ │ └── AppManifest.xml │ ├── NLog.config │ ├── MainPage.xaml.cs │ └── App.xaml ├── NLogSilverlightApp.Web │ ├── NLogReceiver.svc │ ├── Default.aspx.cs │ ├── Default.aspx │ ├── NLog.config │ └── Default.aspx.designer.cs ├── NLogReceiverForwarderService │ └── NLog.config └── ExtendingLoggers │ ├── LoggerWrapper │ ├── NLog.config │ └── LoggerWrapper.sln │ └── InheritFromLogger │ └── NLog.config ├── src ├── NLog │ ├── Settings.StyleCop │ ├── Resources │ │ └── NLog.ico │ ├── AssemblyBuildInfo.cs │ ├── GlobalSuppressions.cs │ └── CustomDictionary.xml ├── NLog.snk ├── NLogC │ ├── app.rc │ ├── app.ico │ └── resource.h ├── Docs │ ├── NLogo.gif │ ├── EditDocs.cmd │ ├── BuildDoc.cmd │ └── Frameworks │ │ ├── Silverlight 3.0.shfbproj │ │ ├── Silverlight 4.0.shfbproj │ │ ├── .NET Compact Framework 2.0.shfbproj │ │ ├── .NET Compact Framework 3.5.shfbproj │ │ └── Silverlight 2.0.shfbproj ├── build_nlogc.cmd ├── VSIntegration │ ├── ItemTemplates │ │ ├── CSharpFileNLogConfig.zip │ │ ├── CSharpConsoleNLogConfig.zip │ │ ├── CSharpEmptyNLogConfig.zip │ │ ├── WebCSharpFileNLogConfig.zip │ │ ├── VisualBasicFileNLogConfig.zip │ │ ├── WebCSharpEmptyNLogConfig.zip │ │ ├── CSharpLogReceiverNLogConfig.zip │ │ ├── CSharpNLogViewerNLogConfig.zip │ │ ├── VisualBasicConsoleNLogConfig.zip │ │ ├── VisualBasicEmptyNLogConfig.zip │ │ ├── WebCSharpConsoleNLogConfig.zip │ │ ├── WebVisualBasicFileNLogConfig.zip │ │ ├── WebCSharpLogReceiverNLogConfig.zip │ │ ├── WebCSharpNLogViewerNLogConfig.zip │ │ ├── WebVisualBasicEmptyNLogConfig.zip │ │ ├── VisualBasicLogReceiverNLogConfig.zip │ │ ├── VisualBasicNLogViewerNLogConfig.zip │ │ ├── WebVisualBasicConsoleNLogConfig.zip │ │ ├── WebVisualBasicLogReceiverNLogConfig.zip │ │ └── WebVisualBasicNLogViewerNLogConfig.zip │ ├── ItemTemplatesGenerator │ │ ├── FileNLogConfig │ │ │ ├── __TemplateIcon.ico │ │ │ ├── NLog.config │ │ │ └── MyTemplate.vstemplate │ │ ├── EmptyNLogConfig │ │ │ ├── __TemplateIcon.ico │ │ │ ├── NLog.config │ │ │ └── MyTemplate.vstemplate │ │ ├── ConsoleNLogConfig │ │ │ ├── __TemplateIcon.ico │ │ │ ├── NLog.config │ │ │ └── MyTemplate.vstemplate │ │ ├── LogReceiverNLogConfig │ │ │ ├── __TemplateIcon.ico │ │ │ ├── MyTemplate.vstemplate │ │ │ └── NLog.config │ │ └── NLogViewerNLogConfig │ │ │ ├── __TemplateIcon.ico │ │ │ ├── NLog.config │ │ │ └── MyTemplate.vstemplate │ └── Snippets │ │ └── VBLogger.snippet ├── NLog.Extended │ ├── AssemblyBuildInfo.cs │ ├── GlobalSuppressions.cs │ └── CustomDictionary.xml ├── LocalTestRun.testrunconfig ├── LocalTestRun.vs2008.testrunconfig ├── NuGet │ └── NLog.Config │ │ ├── tools │ │ └── Install.ps1 │ │ └── content │ │ └── NLog.config ├── publisher_policy.config.template ├── NLog.netfx20.vsmdi ├── NLog.netfx35.vsmdi ├── NLog.netfx40.vsmdi ├── NLog.netcf20.vsmdi ├── NLog.netcf35.vsmdi └── SmartDeviceTestRun.testrunConfig ├── tests ├── DeleteTestUsers.cmd ├── NLog.ComInteropTests │ ├── Deploy.netfx35.cmd │ ├── Deploy.netfx40.cmd │ ├── NLog.ComInteropTest.cmd │ ├── NLog.ComInteropTest.config │ └── Deploy.cmd ├── CreateTestUsers.cmd ├── NLog.UnitTests │ ├── NLogTests.snk │ ├── Background.png │ ├── ApplicationIcon.png │ ├── SplashScreenImage.jpg │ ├── ConfigFiles │ │ ├── included.nlog │ │ ├── main.nlog │ │ ├── referencemissingfile.nlog │ │ └── referencemissingfileignored.nlog │ ├── Properties │ │ ├── AppManifest.xml │ │ └── OutOfBrowserSettings.xml │ ├── App.xaml │ └── NLog.UnitTests.dll.config ├── SampleExtensions │ └── NLogTests.snk ├── NLog.BinaryCompatTests │ ├── NLog1_libs │ │ └── NLog.dll │ ├── README.txt │ ├── NLog.config │ └── App.config ├── NLog.VBTest │ ├── Module1.vb │ └── App.config ├── NLogReceiverService │ ├── crossdomain.xml │ ├── NLog.config │ └── clientaccesspolicy.xml ├── SilverlightApp │ ├── Properties │ │ ├── AppManifest.xml │ │ └── OutOfBrowserSettings.xml │ ├── App.xaml │ └── NLog.config ├── webtest │ ├── context.asp │ ├── global.asa │ ├── test.aspx │ ├── context.aspx │ └── bin │ │ └── NLog.dll.nlog ├── NLogC.UnitTests │ ├── targetver.h │ └── NLog.config └── NLog.Test │ ├── Config2.nlog │ └── Config1.nlog ├── tools ├── tar.exe ├── zip.exe ├── RunXap.dll ├── bzip2.dll ├── bzip2.exe ├── libintl-2.dll ├── DeployNetCF.exe ├── MakeNLogXSD │ ├── app.config │ └── MakeNLogXSD.sln ├── libiconv-2.dll ├── Installer │ ├── Help.ico │ ├── NLog.ico │ ├── TopBanner.bmp │ ├── Background.bmp │ ├── Background.design │ ├── build.cmd │ └── NLogWix.sln ├── WebsiteFiles │ ├── MonoSupport.png │ ├── NewInNLog2.png │ ├── NetCfSupport.png │ ├── NetFxSupport.png │ └── SilverlightSupport.png ├── MergeApiXml │ ├── app.config │ └── MergeApiXml.sln ├── SilverlightConsoleRunner │ └── RunnerForm.cs ├── RunXap │ └── RunXap.sln ├── DumpApiXml │ └── DumpApiXml.sln └── BuildDocPages │ └── BuildDocPages.sln ├── .gitattributes ├── external └── SilverlightUnitTestFramework │ ├── SL2 │ ├── LICENSE.txt │ ├── Microsoft.Silverlight.Testing.dll │ └── Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll │ ├── SL3 │ ├── LICENSE.txt │ ├── Microsoft.Silverlight.Testing.dll │ └── Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll │ ├── WP7 │ ├── LICENSE.txt │ ├── Microsoft.Silverlight.Testing.dll │ └── Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll │ └── WP71 │ ├── LICENSE.txt │ ├── Microsoft.Silverlight.Testing.dll │ └── Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll ├── .gitignore └── README.rdoc /examples/NLogDemo/gmailpassword.txt: -------------------------------------------------------------------------------- 1 | PUT_GMAIL_PASSWORD_HERE -------------------------------------------------------------------------------- /examples/NLogSilverlightApp/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/NLog/Settings.StyleCop: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/NLogDemo/gmailusername.txt: -------------------------------------------------------------------------------- 1 | PUT_GMAIL_USERNAME_HERE@gmail.com -------------------------------------------------------------------------------- /tests/DeleteTestUsers.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | net user NLogTestUser /delete 3 | -------------------------------------------------------------------------------- /src/NLog.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/NLog.snk -------------------------------------------------------------------------------- /tests/NLog.ComInteropTests/Deploy.netfx35.cmd: -------------------------------------------------------------------------------- 1 | %~dp0\Deploy.cmd v2.0.50727 %1 -------------------------------------------------------------------------------- /tests/NLog.ComInteropTests/Deploy.netfx40.cmd: -------------------------------------------------------------------------------- 1 | %~dp0\Deploy.cmd v4.0.30319 %1 -------------------------------------------------------------------------------- /tools/tar.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/tar.exe -------------------------------------------------------------------------------- /tools/zip.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/zip.exe -------------------------------------------------------------------------------- /src/NLogC/app.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/NLogC/app.rc -------------------------------------------------------------------------------- /tools/RunXap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/RunXap.dll -------------------------------------------------------------------------------- /tools/bzip2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/bzip2.dll -------------------------------------------------------------------------------- /tools/bzip2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/bzip2.exe -------------------------------------------------------------------------------- /src/Docs/NLogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/Docs/NLogo.gif -------------------------------------------------------------------------------- /src/NLogC/app.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/NLogC/app.ico -------------------------------------------------------------------------------- /tools/libintl-2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/libintl-2.dll -------------------------------------------------------------------------------- /tools/DeployNetCF.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/DeployNetCF.exe -------------------------------------------------------------------------------- /tools/MakeNLogXSD/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tools/libiconv-2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/libiconv-2.dll -------------------------------------------------------------------------------- /examples/web/article1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/web/article1.cs -------------------------------------------------------------------------------- /examples/web/article2.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/web/article2.cs -------------------------------------------------------------------------------- /tools/Installer/Help.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/Installer/Help.ico -------------------------------------------------------------------------------- /tools/Installer/NLog.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/Installer/NLog.ico -------------------------------------------------------------------------------- /examples/NLogDemo/NLog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/NLogDemo/NLog.png -------------------------------------------------------------------------------- /examples/web/config1.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/web/config2.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/build_nlogc.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | "%VS90COMNTOOLS%..\ide\devenv.com" NLogC.sln /rebuild Debug 3 | 4 | -------------------------------------------------------------------------------- /src/NLog/Resources/NLog.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/NLog/Resources/NLog.ico -------------------------------------------------------------------------------- /tools/Installer/TopBanner.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/Installer/TopBanner.bmp -------------------------------------------------------------------------------- /src/Docs/EditDocs.cmd: -------------------------------------------------------------------------------- 1 | set SHFBROOT=%~dp0..\..\Tools\SHFB 2 | %SHFBROOT%\SandcastleBuilderGUI.exe NLog.shfbproj -------------------------------------------------------------------------------- /tools/Installer/Background.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/Installer/Background.bmp -------------------------------------------------------------------------------- /tests/CreateTestUsers.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | net user NLogTestUser /delete 3 | net user NLogTestUser BC@57acasd123 /add 4 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/NLogTests.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/NLog.UnitTests/NLogTests.snk -------------------------------------------------------------------------------- /tools/Installer/Background.design: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/Installer/Background.design -------------------------------------------------------------------------------- /tools/WebsiteFiles/MonoSupport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/WebsiteFiles/MonoSupport.png -------------------------------------------------------------------------------- /tools/WebsiteFiles/NewInNLog2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/WebsiteFiles/NewInNLog2.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | tools/SHFB export-ignore 2 | tools/Sandcastle export-ignore 3 | tools/Wix export-ignore 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/NLogC/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by app.rc 4 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/NLog.UnitTests/Background.png -------------------------------------------------------------------------------- /tests/SampleExtensions/NLogTests.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/SampleExtensions/NLogTests.snk -------------------------------------------------------------------------------- /tools/WebsiteFiles/NetCfSupport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/WebsiteFiles/NetCfSupport.png -------------------------------------------------------------------------------- /tools/WebsiteFiles/NetFxSupport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/WebsiteFiles/NetFxSupport.png -------------------------------------------------------------------------------- /examples/web/config12.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/NLog.UnitTests/ApplicationIcon.png -------------------------------------------------------------------------------- /tools/WebsiteFiles/SilverlightSupport.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tools/WebsiteFiles/SilverlightSupport.png -------------------------------------------------------------------------------- /tests/NLog.UnitTests/SplashScreenImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/NLog.UnitTests/SplashScreenImage.jpg -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetTrace/global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="SomeWebApplication.Global" %> 2 | -------------------------------------------------------------------------------- /examples/targets/Screenshots/Network/Output.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/Network/Output.gif -------------------------------------------------------------------------------- /tests/NLog.BinaryCompatTests/NLog1_libs/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/tests/NLog.BinaryCompatTests/NLog1_libs/NLog.dll -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/NLogWindowsPhoneApplication/Background.png -------------------------------------------------------------------------------- /examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.sql: -------------------------------------------------------------------------------- 1 | drop database NLogDatabase 2 | go 3 | exec sp_droplogin 'nloguser' 4 | go 5 | -------------------------------------------------------------------------------- /examples/targets/Screenshots/RichTextBox/Simple.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/RichTextBox/Simple.gif -------------------------------------------------------------------------------- /examples/targets/Screenshots/ColoredConsole/Simple.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/ColoredConsole/Simple.gif -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL2/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL2/LICENSE.txt -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL3/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL3/LICENSE.txt -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP7/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP7/LICENSE.txt -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP71/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP71/LICENSE.txt -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/NLogWindowsPhoneApplication/ApplicationIcon.png -------------------------------------------------------------------------------- /examples/targets/Configuration File/WebService/WebService1/Service1.asmx: -------------------------------------------------------------------------------- 1 | <%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="WebService1.Service1" %> -------------------------------------------------------------------------------- /examples/targets/Screenshots/FormControl/FormControl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/FormControl/FormControl.gif -------------------------------------------------------------------------------- /examples/targets/Screenshots/RichTextBox/RowColoring.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/RichTextBox/RowColoring.gif -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/CSharpFileNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/CSharpFileNLogConfig.zip -------------------------------------------------------------------------------- /tests/NLog.UnitTests/ConfigFiles/included.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/SplashScreenImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/NLogWindowsPhoneApplication/SplashScreenImage.jpg -------------------------------------------------------------------------------- /examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx: -------------------------------------------------------------------------------- 1 | <%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="WebService1.Service1" %> -------------------------------------------------------------------------------- /examples/targets/Screenshots/RichTextBox/WordColoring.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/RichTextBox/WordColoring.gif -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/CSharpConsoleNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/CSharpConsoleNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/CSharpEmptyNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/CSharpEmptyNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebCSharpFileNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebCSharpFileNLogConfig.zip -------------------------------------------------------------------------------- /tests/NLog.BinaryCompatTests/README.txt: -------------------------------------------------------------------------------- 1 | This project is compiled against binary of NLog.dll v1, but when it executes 2 | NLog.dll v2 is used via assembly redirection. -------------------------------------------------------------------------------- /examples/targets/Screenshots/MessageBox/MessageBoxTarget.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/MessageBox/MessageBoxTarget.gif -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/VisualBasicFileNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/VisualBasicFileNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebCSharpEmptyNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebCSharpEmptyNLogConfig.zip -------------------------------------------------------------------------------- /examples/NLogSilverlightApp.Web/NLogReceiver.svc: -------------------------------------------------------------------------------- 1 | <%@ ServiceHost Language="C#" Debug="true" Service="NLogSilverlightApp.Web.NLogReceiver" CodeBehind="NLogReceiver.svc.cs" %> 2 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ASPNetBufferingWrapper.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput1.gif -------------------------------------------------------------------------------- /examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput2.gif -------------------------------------------------------------------------------- /examples/targets/Screenshots/ColoredConsole/Row Highlighting.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/ColoredConsole/Row Highlighting.gif -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/CSharpLogReceiverNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/CSharpLogReceiverNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/CSharpNLogViewerNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/CSharpNLogViewerNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/VisualBasicConsoleNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/VisualBasicConsoleNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/VisualBasicEmptyNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/VisualBasicEmptyNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebCSharpConsoleNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebCSharpConsoleNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebVisualBasicFileNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebVisualBasicFileNLogConfig.zip -------------------------------------------------------------------------------- /examples/targets/Screenshots/ColoredConsole/Word Highlighting.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/examples/targets/Screenshots/ColoredConsole/Word Highlighting.gif -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebCSharpLogReceiverNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebCSharpLogReceiverNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebCSharpNLogViewerNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebCSharpNLogViewerNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebVisualBasicEmptyNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebVisualBasicEmptyNLogConfig.zip -------------------------------------------------------------------------------- /examples/web/AddFilter.cs: -------------------------------------------------------------------------------- 1 | static void Main(string[] args) 2 | { 3 | FilterFactory.AddFilter("MyFirst", typeof(MyNamespace.MyFirstFilter)); 4 | 5 | // start logging here 6 | } 7 | -------------------------------------------------------------------------------- /examples/web/AddTarget.cs: -------------------------------------------------------------------------------- 1 | static void Main(string[] args) 2 | { 3 | TargetFactory.AddTarget("MyFirst", typeof(MyNamespace.MyFirstTarget)); 4 | 5 | // start logging here 6 | } 7 | -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/VisualBasicLogReceiverNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/VisualBasicLogReceiverNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/VisualBasicNLogViewerNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/VisualBasicNLogViewerNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebVisualBasicConsoleNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebVisualBasicConsoleNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebVisualBasicLogReceiverNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebVisualBasicLogReceiverNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplates/WebVisualBasicNLogViewerNLogConfig.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplates/WebVisualBasicNLogViewerNLogConfig.zip -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/FileNLogConfig/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplatesGenerator/FileNLogConfig/__TemplateIcon.ico -------------------------------------------------------------------------------- /tools/MergeApiXml/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL2/Microsoft.Silverlight.Testing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL2/Microsoft.Silverlight.Testing.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL3/Microsoft.Silverlight.Testing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL3/Microsoft.Silverlight.Testing.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP7/Microsoft.Silverlight.Testing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP7/Microsoft.Silverlight.Testing.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP71/Microsoft.Silverlight.Testing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP71/Microsoft.Silverlight.Testing.dll -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/EmptyNLogConfig/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplatesGenerator/EmptyNLogConfig/__TemplateIcon.ico -------------------------------------------------------------------------------- /tests/NLog.UnitTests/ConfigFiles/main.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/ConsoleNLogConfig/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplatesGenerator/ConsoleNLogConfig/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/LogReceiverNLogConfig/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplatesGenerator/LogReceiverNLogConfig/__TemplateIcon.ico -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/NLogViewerNLogConfig/__TemplateIcon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/src/VSIntegration/ItemTemplatesGenerator/NLogViewerNLogConfig/__TemplateIcon.ico -------------------------------------------------------------------------------- /tests/NLog.VBTest/Module1.vb: -------------------------------------------------------------------------------- 1 | Module Module1 2 | Dim logger As NLog.Logger = LogManager.GetLogger("Logger1") 3 | Sub Main() 4 | logger.Debug("Hello {0}", "world!") 5 | End Sub 6 | End Module 7 | -------------------------------------------------------------------------------- /examples/web/AddLayoutRenderer.cs: -------------------------------------------------------------------------------- 1 | static void Main(string[] args) 2 | { 3 | LayoutRendererFactory.AddLayoutRenderer("hour", typeof(MyNamespace.MyFirstLayoutRenderer)); 4 | 5 | // start logging here 6 | } 7 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/ConfigFiles/referencemissingfile.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/NLogReceiverService/crossdomain.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/web/config8.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/web/GetLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | 4 | using NLog; 5 | 6 | class MyClass { 7 | static Logger logger = LogManager.GetLogger("MyClass"); 8 | 9 | // other class members go here 10 | 11 | } 12 | -------------------------------------------------------------------------------- /examples/web/config8a.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL2/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL2/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/SL3/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/SL3/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP7/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP7/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll -------------------------------------------------------------------------------- /external/SilverlightUnitTestFramework/WP71/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkowalski/NLog/HEAD/external/SilverlightUnitTestFramework/WP71/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll -------------------------------------------------------------------------------- /src/NLog/AssemblyBuildInfo.cs: -------------------------------------------------------------------------------- 1 | // do not modify this file. It will be automatically regenerated 2 | // based on the version number saved in 'D:\Work\NLog2\src\NLog\..\..\NLog.version' 3 | using System.Reflection; 4 | 5 | [assembly: AssemblyVersion("2.0.0.0")] 6 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetTrace/README.txt: -------------------------------------------------------------------------------- 1 | To open this example in VS2005 you need to get 2 | "Visual Studio 2005 Web Application Projects" component available at: 3 | 4 | http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx 5 | -------------------------------------------------------------------------------- /examples/web/GetCurrentClassLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | 4 | using NLog; 5 | 6 | class MyClass { 7 | static Logger logger = LogManager.GetCurrentClassLogger(); 8 | 9 | // class members go here 10 | 11 | } 12 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/NLog.Extended/AssemblyBuildInfo.cs: -------------------------------------------------------------------------------- 1 | // do not modify this file. It will be automatically regenerated 2 | // based on the version number saved in 'D:\Work\NLog2\src\NLog\..\..\NLog.version' 3 | using System.Reflection; 4 | 5 | [assembly: AssemblyVersion("2.0.0.0")] 6 | -------------------------------------------------------------------------------- /tests/SilverlightApp/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/webtest/context.asp: -------------------------------------------------------------------------------- 1 | <%@ language="JScript" %> 2 | <% 3 | Response.Expires = -1; 4 | 5 | 6 | var logger = new ActiveXObject("NLog.Logger"); 7 | logger.LoggerName = "logger"; 8 | logger.Debug("message"); 9 | %> 10 | -------------------------------------------------------------------------------- /tests/webtest/global.asa: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /src/Docs/BuildDoc.cmd: -------------------------------------------------------------------------------- 1 | rem @echo off 2 | set FRAMEWORK=%1 3 | if (%1)==() set FRAMEWORK=".NET Framework 3.5" 4 | set CONFIGURATION=%2 5 | if (%2)==() set CONFIGURATION=Debug 6 | %WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe %~dp0NLog.shfbproj /p:Framework=%FRAMEWORK% 7 | 8 | -------------------------------------------------------------------------------- /tests/NLogReceiverService/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/NLogDemo/style.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | font-family: Segoe UI; 4 | font-size: 10pt; 5 | } 6 | 7 | h1 8 | { 9 | font-weight: normal; 10 | } 11 | 12 | pre 13 | { 14 | border: 1px dotted orange; 15 | padding: 10px; 16 | background-color: #ffffe0; 17 | } -------------------------------------------------------------------------------- /examples/NLogSilverlightApp/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/web/article3.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/web/article4.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/web/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/FormControl/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/ConfigFiles/referencemissingfileignored.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/SilverlightApp/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/NLogSilverlightApp/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/NLogC.UnitTests/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /src/LocalTestRun.testrunconfig: -------------------------------------------------------------------------------- 1 | 2 | 3 | This is a default test run configuration for a local test run. 4 | 5 | -------------------------------------------------------------------------------- /examples/web/config7.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/LocalTestRun.vs2008.testrunconfig: -------------------------------------------------------------------------------- 1 | 2 | 3 | This is a default test run configuration for a local test run. 4 | 5 | -------------------------------------------------------------------------------- /examples/web/article6.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetTrace/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/NLog.UnitTests.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/web/config9.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/NLogC.UnitTests/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Trace/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/webtest/test.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page language="c#" AutoEventWireup="true" %> 2 | 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Debug/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Memory/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Debugger/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Null/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/NLogSilverlightApp.Web/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace NLogSilverlightApp.Web 9 | { 10 | public partial class _Default : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/ASPNetTrace/web.nlog: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/OutputDebugString/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/NLog.ComInteropTests/NLog.ComInteropTest.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Registering NLog.ComInterop... 3 | call "%~dp0Install_NLog_ComInterop.cmd" || exit /b 1 4 | echo Running tests... 5 | cscript //nologo "%~dp0NLog.ComInteropTest.js" "%~dp0NLog.ComInteropTest.config" 6 | set RESULT=%ERRORLEVEL% 7 | echo Exit code: %RESULT%. 8 | echo Unregistering NLog.ComInterop... 9 | call "%~dp0Uninstall_NLog_ComInterop.cmd" || exit /b 1 10 | exit /b %RESULT% 11 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Chainsaw/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/NLogViewer/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/NLogReceiverForwarderService/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetBufferingWrapper/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 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")] 11 | -------------------------------------------------------------------------------- /src/NuGet/NLog.Config/tools/Install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | $configItem = $project.ProjectItems.Item("NLog.config") 4 | 5 | // set 'Copy To Output Directory' to 'Copy if newer' 6 | $copyToOutput = $configItem.Properties.Item("CopyToOutputDirectory") 7 | $copyToOutput.Value = 1 8 | 9 | // set 'Build Action' to 'Content' 10 | $buildAction = $configItem.Properties.Item("BuildAction") 11 | $buildAction.Value = 2 12 | 13 | -------------------------------------------------------------------------------- /tests/NLog.BinaryCompatTests/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/NLog.BinaryCompatTests/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/ExtendingLoggers/LoggerWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Console/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/MessageBox/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | obj/ 2 | bin/ 3 | Bin/ 4 | msbuild.log 5 | LastTestRunSummary.cmd 6 | src/Docs/Working/ 7 | test-results/ 8 | *.chw 9 | *.pidb 10 | *.userprefs 11 | log.txt 12 | *.suo 13 | _ReSharper.* 14 | *.ReSharper.user 15 | *.bak 16 | *.csproj.user 17 | *.vcxproj.user 18 | TestResults/ 19 | StyleCop.Cache 20 | NLogMerged.api.xml 21 | _UpgradeReport_Files/ 22 | UpgradeLog*.XML 23 | *.xap 24 | ipch/ 25 | *.sdf 26 | *.opensdf 27 | examples/NLogDemo/logs/ 28 | examples/NLogDemo/gmail*.txt 29 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.bat: -------------------------------------------------------------------------------- 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 20 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/EventLog/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/publisher_policy.config.template: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Network/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/EmptyNLogConfig/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/FormControl/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/web/config5.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/ColoredConsole/Simple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/web/config10.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/AutoFlushWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/NLog.netfx20.vsmdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/NLog.netfx35.vsmdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/NLog.netfx40.vsmdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/SilverlightApp/Properties/OutOfBrowserSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | SilverlightApp.sl4 Application on your desktop; at home, at work or on the go. 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/Debugger/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | class Example 7 | { 8 | static void Main(string[] args) 9 | { 10 | DebuggerTarget target = new DebuggerTarget(); 11 | target.Layout = "${message}"; 12 | 13 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 14 | 15 | Logger logger = LogManager.GetLogger("Example"); 16 | logger.Debug("log message"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/File/Multiple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/NLog.netcf20.vsmdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/NLog.netcf35.vsmdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/Console/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using NLog; 2 | using NLog.Targets; 3 | 4 | class Example 5 | { 6 | static void Main(string[] args) 7 | { 8 | ConsoleTarget target = new ConsoleTarget(); 9 | target.Layout = "${date:format=HH\\:MM\\:ss} ${logger} ${message}"; 10 | 11 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 12 | 13 | Logger logger = LogManager.GetLogger("Example"); 14 | logger.Debug("log message"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/BufferingWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/RepeatingWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/RichTextBox/Simple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/web/Performance.cs: -------------------------------------------------------------------------------- 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 | 17 | -------------------------------------------------------------------------------- /src/NLog/GlobalSuppressions.cs: -------------------------------------------------------------------------------- 1 | // This file is used by Code Analysis to maintain SuppressMessage 2 | // attributes that are applied to this project. 3 | // Project-level suppressions either have no target or are given 4 | // a specific target and scoped to a namespace, type, member, etc. 5 | // 6 | // To add a suppression to this file, right-click the message in the 7 | // Error List, point to "Suppress Message(s)", and click 8 | // "In Project Suppression File". 9 | // You do not need to add suppressions to this file manually. 10 | -------------------------------------------------------------------------------- /tests/NLog.ComInteropTests/NLog.ComInteropTest.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /examples/NLogSilverlightApp.Web/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NLogSilverlightApp.Web._Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/PerfCounter/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/NLog.Test/Config2.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | ${xml-encode:${message}}]]> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/NLog.UnitTests/Properties/OutOfBrowserSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | NLog.Silverlight3.UnitTests Application on your desktop; at home, at work or on the go. 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/NLog.Extended/GlobalSuppressions.cs: -------------------------------------------------------------------------------- 1 | // This file is used by Code Analysis to maintain SuppressMessage 2 | // attributes that are applied to this project. 3 | // Project-level suppressions either have no target or are given 4 | // a specific target and scoped to a namespace, type, member, etc. 5 | // 6 | // To add a suppression to this file, right-click the message in the 7 | // Error List, point to "Suppress Message(s)", and click 8 | // "In Project Suppression File". 9 | // You do not need to add suppressions to this file manually. 10 | 11 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/Null/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | class Example 7 | { 8 | static void Main(string[] args) 9 | { 10 | NullTarget target = new NullTarget(); 11 | target.Layout = "${message}"; 12 | target.FormatMessage = true; 13 | 14 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 15 | 16 | Logger logger = LogManager.GetLogger("Example"); 17 | logger.Debug("log message"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/NLog.Test/Config1.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Database/MSSQL/create_nlog_database.bat: -------------------------------------------------------------------------------- 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 22 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/FilteringWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tools/SilverlightConsoleRunner/RunnerForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Windows.Forms; 4 | 5 | namespace SilverlightConsoleRunner 6 | { 7 | public partial class RunnerForm : Form 8 | { 9 | public RunnerForm() 10 | { 11 | InitializeComponent(); 12 | } 13 | 14 | public string Url { get; set; } 15 | 16 | private void RunnerForm_Load(object sender, EventArgs e) 17 | { 18 | webBrowser1.Navigate(this.Url); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/RetryingWrapper/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/NLog.ComInteropTests/Deploy.cmd: -------------------------------------------------------------------------------- 1 | set NETFX_VERSION=%1 2 | set DEST_DIR=%2 3 | copy %~dp0\NLog.ComInteropTest.* %DEST_DIR% 4 | echo %%WINDIR%%\Microsoft.NET\Framework\%NETFX_VERSION%\RegAsm.exe /nologo /unregister "%%~dp0NLog.dll" > %DEST_DIR%\Uninstall_NLog_ComInterop.cmd 5 | echo exit /b %%ERRORLEVEL%% >> %DEST_DIR%\Uninstall_NLog_ComInterop.cmd 6 | echo %%WINDIR%%\Microsoft.NET\Framework\%NETFX_VERSION%\RegAsm.exe /nologo /codebase "%%~dp0NLog.dll" /tlb > %DEST_DIR%\Install_NLog_ComInterop.cmd 7 | echo exit /b %%ERRORLEVEL%% >> %DEST_DIR%\Install_NLog_ComInterop.cmd 8 | 9 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/File/Multiple2/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tools/Installer/build.cmd: -------------------------------------------------------------------------------- 1 | C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe Installer.wixproj /p:Flavor=All /p:Configuration=Release || exit /b 1 2 | msiexec /x {a93e5783-ae19-41cb-a99d-4b04de0b0192} /passive 3 | msiexec /x {a93e5783-ae19-41cb-a99d-4b04de0b0193} /passive 4 | msiexec /x {a93e5783-ae19-41cb-a99d-4b04de0b0194} /passive 5 | msiexec /x {a93e5783-ae19-41cb-a99d-4b04de0b0195} /passive 6 | msiexec /x {a93e5783-ae19-41cb-a99d-4b04de0b0196} /passive 7 | msiexec /lv* log.txt /i D:\Work\NLog\build\bin\Release\Packages\NLog2-All-PrivateBuild.msi 8 | echo ERRORLEVEL: %ERRORLEVEL% -------------------------------------------------------------------------------- /examples/targets/Configuration API/OutputDebugString/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | using NLog.Win32.Targets; 6 | 7 | class Example 8 | { 9 | static void Main(string[] args) 10 | { 11 | OutputDebugStringTarget target = new OutputDebugStringTarget(); 12 | target.Layout = "${message}"; 13 | 14 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 15 | 16 | Logger logger = LogManager.GetLogger("Example"); 17 | logger.Debug("log message"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/Mail/Simple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/MethodCall/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/SplitGroup/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/WebService/WebService1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 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")] 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NormalPage.aspx.cs" Inherits="ASPNetBufferingWrapper.NormalPage" %> 2 | 3 | 4 | 5 | 6 | 7 | Untitled Page 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/MessageBox/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | class Example 7 | { 8 | static void Main(string[] args) 9 | { 10 | MessageBoxTarget target = new MessageBoxTarget(); 11 | target.Layout = "${longdate}: ${message}"; 12 | target.Caption = "${level} message"; 13 | 14 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 15 | 16 | Logger logger = LogManager.GetLogger("Example"); 17 | logger.Debug("log message"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/WebService/Simple/WebService1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 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")] 14 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/RandomizeGroup/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/RoundRobinGroup/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/ExtendingLoggers/InheritFromLogger/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageWithWarnings.aspx.cs" Inherits="ASPNetBufferingWrapper.PageWithWarnings" %> 2 | 3 | 4 | 5 | 6 | 7 | Untitled Page 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/File/Simple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/MSMQ/Simple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/webtest/context.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page language="c#" AutoEventWireup="true" %> 2 | 20 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/Trace/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | using System.Diagnostics; 6 | 7 | class Example 8 | { 9 | static void Main(string[] args) 10 | { 11 | Trace.Listeners.Add(new ConsoleTraceListener()); 12 | 13 | TraceTarget target = new TraceTarget(); 14 | target.Layout = "${message}"; 15 | 16 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 17 | 18 | Logger logger = LogManager.GetLogger("Example"); 19 | logger.Debug("log message"); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/MSMQ/Multiple/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/targets/Configuration File/FallbackGroup/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/web/config11.nlog: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/ConsoleNLogConfig/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/NLogDemo/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/NLogSilverlightApp.Web/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/NLogReceiverService/clientaccesspolicy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/VSIntegration/ItemTemplatesGenerator/FileNLogConfig/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/Memory/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | class Example 7 | { 8 | static void Main(string[] args) 9 | { 10 | MemoryTarget target = new MemoryTarget(); 11 | target.Layout = "${message}"; 12 | 13 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 14 | 15 | Logger logger = LogManager.GetLogger("Example"); 16 | logger.Debug("log message"); 17 | 18 | foreach (string s in target.Logs) 19 | { 20 | Console.Write("logged: {0}", s); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /examples/NLogWindowsPhoneApplication/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace NLogWindowsPhoneApplication 2 | { 3 | using System.Windows; 4 | using Microsoft.Phone.Controls; 5 | 6 | using NLog; 7 | 8 | public partial class MainPage : PhoneApplicationPage 9 | { 10 | private static Logger logger = LogManager.GetCurrentClassLogger(); 11 | 12 | // Constructor 13 | public MainPage() 14 | { 15 | InitializeComponent(); 16 | } 17 | 18 | private void button1_Click(object sender, RoutedEventArgs e) 19 | { 20 | logger.Info("Hello <> 'foo' \"bar\" !"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /examples/targets/Configuration API/FormControl/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | namespace RichTextBox2 7 | { 8 | static class Example 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | // for NLog configuration look in Form1.cs 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /examples/targets/Configuration File/RichTextBox/WordColoring/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/EventLog/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using NLog; 2 | using NLog.Targets; 3 | using NLog.Win32.Targets; 4 | 5 | class Example 6 | { 7 | static void Main(string[] args) 8 | { 9 | EventLogTarget target = new EventLogTarget(); 10 | target.Source = "My Source"; 11 | target.Log = "Application"; 12 | target.MachineName = "."; 13 | target.Layout = "${logger}: ${message}"; 14 | 15 | NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); 16 | 17 | Logger logger = LogManager.GetLogger("Example"); 18 | logger.Debug("log message"); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/Simple/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | namespace RichTextBox2 7 | { 8 | static class Example 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | // for NLog configuration look in Form1.cs 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/RowColoring/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | namespace RichTextBox2 7 | { 8 | static class Example 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | // for NLog configuration look in Form1.cs 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /examples/targets/Configuration File/ColoredConsole/Word Highlighting/NLog.config: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /examples/targets/Configuration API/RichTextBox/WordColoring/Example.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using NLog; 4 | using NLog.Targets; 5 | 6 | namespace RichTextBox2 7 | { 8 | static class Example 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | // for NLog configuration look in Form1.cs 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /tests/NLog.VBTest/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/NLogSilverlightApp/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 |