This commit is contained in:
16
server/AyaNova/util/ApplicationLogging.cs
Normal file
16
server/AyaNova/util/ApplicationLogging.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
|
||||
namespace AyaNova.Util
|
||||
{
|
||||
/// <summary>
|
||||
/// Shared logger
|
||||
/// </summary>
|
||||
internal static class ApplicationLogging
|
||||
{
|
||||
internal static ILoggerFactory LoggerFactory { get; set; }// = new LoggerFactory();
|
||||
internal static ILogger CreateLogger<T>() => LoggerFactory.CreateLogger<T>();
|
||||
internal static ILogger CreateLogger(string categoryName) => LoggerFactory.CreateLogger(categoryName);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user