inicio bases
This commit is contained in:
41
back/configs/serilog.json
Normal file
41
back/configs/serilog.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Sinks.OpenTelemetry" ],
|
||||
"MinimumLevel": {
|
||||
"Default": "Information"
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console"
|
||||
},
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "Logs/log-.txt",
|
||||
"rollingInterval": "Day",
|
||||
"fileSizeLimitBytes": 5242880,
|
||||
"rollOnFileSizeLimit": true,
|
||||
"retainedFileCountLimit": 31,
|
||||
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "OpenTelemetry",
|
||||
"Args": {
|
||||
"endpoint": "http://localhost:4317",
|
||||
"protocol": "Grpc",
|
||||
"resourceAttributes": {
|
||||
"service.name": "back.mmorales.photo",
|
||||
"deployment.environment": "development"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [
|
||||
"FromLogContext",
|
||||
"WithThreadId",
|
||||
"WithProcessId",
|
||||
"WithEnvironmentName"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user