{
"Serilog": {
"Using": [
"Serilog",
"Serilog.Enrichers.Environment",
"Serilog.Enrichers.Process",
"Serilog.Settings.Configuration",
"Serilog.Sinks.Seq",
"Serilog.Expressions",
"RM.Lib.Monitoring.Tracklog"
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithProcessId",
"WithThreadId",
"WithEnvironmentUserName",
"WithEnvironmentName"
],
"MinimumLevel": "VerboseInformation",
"WriteTo": [
{
{
"Name": "SeqConsole",
"Args": {
"serverUrltheme": "http://localhost:5341"
}
},
{
"Name": "Console",
"Args": {
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console",
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Legacy} [{Level:u3}] {Message:lj} {EnvironmentUserName} {EnvironmentName}- <{ThreadId}>{NewLine}{ExceptionDetails}"
}
},
{
{
"Name": "Async",
"Args": {
"configure": [
{
{
"Name": "MapToFile",
"Args": {
"enable": false, //para habilitar a escrita em arquivo altere esse valor para 'true'
"rollOnFileSizeLimit": true,
"rollingInterval": "Day",
"fileSizeLimitBytes": 1073741824,
"retainedFileCountLimit": 31,
"outputTemplate": "{SourceContext}{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Legacy} [{Level:u3}] {Message:lj} ({EnvironmentName}|{EnvironmentUserName}) <{ThreadId}:{ThreadName}>[{ProcessId}:{ProcessName}] [{CallerFilePath} - ({CallerLineNumber}) - {CallerMemberName}] [{Module}, {Category}, {Funcionality}] {NewLine}{Exception}"
}
}
]
}
}
]
}
}
]
}
}
]
}
} |