LogsPlugin
Plugin to logs on .Net platforms.
using Plugin.Logs;
ILoggerFactory loggerFactory = new LoggerFactory
{
LogDirectoryPath = @"C:\logs\"
};
var logger = loggerFactory.GetLoggger("Log");
//Log a message
logger.Info("Message");
//Log a warning message
logger.Warning("Message");
// Log an exception
logger.Log(new NotImplementedException());
// Log an exception with message
logger.Log("message", new NotImplementedException());
NuGet
- Available on NuGet: Plugin.Logs
Build
Platform Support
Platform | Supported | Version |
---|---|---|
.NET Standard | Yes | 2.0 |
@JeromeGiacomini
Created By:- Twitter: @JeromeGiacomini
- Blog: Blog perso, Blog pro
- Book: Xamarin French only
License
MIT © JGI