Search code examples
.netloggingportable-class-library

Any logging framework for Portable Class Library?


Is there any logging framework which supports Portable Class Library? I searched on Nuget but failed to find any.

Thanks,


Solution

  • Not sure, if there is logging framework targeting directly Portable Class Library, but nothing stops you from implementing logging in your PCL using Dependency Injection - create interface for logging service and implement it in all target platforms separately using your favorite, or even different libraries. You have then more control over specific logging settings - it's quite different approach for logging in .NET WPF app, WP8 app or Windows Store app.