auto-creamapi-2/Utils/MyLogger.cs

14 lines
355 B
C#
Raw Normal View History

2020-12-19 19:14:40 -05:00
using Serilog;
using Serilog.Core;
namespace auto_creamapi.Utils
{
public class MyLogger
{
public static readonly Logger Log = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console()
.WriteTo.File("autocreamapi.log", rollingInterval: RollingInterval.Day)
.CreateLogger();
}
}