LibLog is a single file for you to either copy/paste or install via nuget, into your library/framework/application to provide a logging abstraction.
C# PowerShell
Latest commit da4fb02 Jul 21, 2017 @damianh committed on GitHub conditional reference for net4xx csproj

ReadMe.md

LibLog Build status NuGet Badge Join the chat at https://gitter.im/damianh/LibLog

Designed specifically for library developers, LibLog is a single file for you to either copy/paste or install via nuget, into your library/framework/application to provide a logging abstraction. It also contains transparent built-in support for NLog, Log4Net, EntLib Logging, Serilog and Loupe, and allows your users to define a custom provider if necessary.

Please see Wiki for more information.

Availability for NetStandard / new .csproj format

LibLog uses .pp file to do a namespace transform (aka source transform ) so it fits into your project's namespace. However it appears that source transform are currently broken in RTM. For now, the workaround:

  1. Copy LibLog.cs to your netstandard project.
  2. Manually rename the namespace YourRootNamespace to your project's root namespace.
  3. Enable LIBLOG_PORTABLE compiler directive.

If you are cross-compiling to net451, net452, etc. then you need to add a conditional reference:

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
  <Reference Include="Microsoft.CSharp" />
</ItemGroup>

License

LibLog is licensed under MIT Licence.

Developed with:

Resharper dotCover dotTrace

Feedback, compliments or criticism: @randompunter