Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm updating some old code which used Log4net's ILog as the logging interface, replacing it with Umbraco's ILogger.
I'm registering ILogger in Autofac:
builder.Register(c => Logger.CreateWithDefaultLog4NetConfiguration()).As<ILogger>().InstancePerRequest();
Which then exposes methods like _logger.Error
However, we have several custom log files written to by different processes, and I'd like to continue to do so.
Is it possible to use the ILogger interface to write to a non-default log?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set log destination when using ILogger
I'm updating some old code which used Log4net's ILog as the logging interface, replacing it with Umbraco's ILogger.
I'm registering ILogger in Autofac:
Which then exposes methods like _logger.Error
However, we have several custom log files written to by different processes, and I'd like to continue to do so.
Is it possible to use the ILogger interface to write to a non-default log?
is working on a reply...