using Microsoft.Extensions.Logging;
namespace Capnp
{
///
/// Runtime logging features rely on
///
public static class Logging
{
///
/// Gets or sets the logger factory which will be used by this assembly.
///
public static ILoggerFactory LoggerFactory { get; set; } = new LoggerFactory();
///
/// Creates a new ILogger instance, using the LoggerFactory of this class.
///
/// The type using the logger
/// The logger instance
public static ILogger CreateLogger() => LoggerFactory.CreateLogger();
}
}