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.
Clone or download
Pull request Compare This branch is 84 commits behind damianh:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
tools
.gitattributes
.gitignore
ReadMe.md
appveyor.yaml
build.cake
build.ps1
default.ps1
licence.txt
version.txt

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