Moved umbraco file logging into minimal config
Signed-off-by: berg <mail@bergmania.dk>
This commit is contained in:
@@ -47,6 +47,11 @@ namespace Umbraco.Core.Logging.Serilog
|
||||
.Enrich.With<Log4NetLevelMapperEnricher>()
|
||||
.Enrich.FromLogContext(); // allows us to dynamically enrich
|
||||
|
||||
|
||||
logConfig.WriteTo.UmbracoFile(
|
||||
Path.Combine(loggingConfiguration.LogDirectory, $"UmbracoTraceLog.{Environment.MachineName}..json")
|
||||
);
|
||||
|
||||
return logConfig;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"MinimumLevel": {
|
||||
"Default": "Information"
|
||||
},
|
||||
"WriteTo:1":
|
||||
"WriteTo":[
|
||||
{
|
||||
"Name": "Async",
|
||||
"Args": {
|
||||
@@ -14,15 +14,15 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
"Umbraco": {
|
||||
"CMS": {
|
||||
"Global":{
|
||||
"Smtp": {
|
||||
// "From": "your@email.here",
|
||||
// "Host": "localhost",
|
||||
// "Port": "25"
|
||||
"From": "your@email.here",
|
||||
"Host": "localhost",
|
||||
"Port": "25"
|
||||
}
|
||||
},
|
||||
"Hosting":{
|
||||
|
||||
@@ -1,83 +1,74 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"umbracoDbDSN": ""
|
||||
},
|
||||
"Serilog": {
|
||||
"Using": [
|
||||
"Umbraco.Infrastructure"
|
||||
],
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information",
|
||||
"System": "Warning"
|
||||
}
|
||||
},
|
||||
"WriteTo:0": {
|
||||
"Name": "UmbracoFile",
|
||||
"Args": {
|
||||
"path" : "%UMBLOGDIR%/UmbracoTraceLog.%MACHINENAME%..json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Umbraco": {
|
||||
"CMS": {
|
||||
"Content": {
|
||||
"Notifications": {
|
||||
"Email": "your@email.here"
|
||||
},
|
||||
"MacroErrors": "throw"
|
||||
},
|
||||
"Global": {
|
||||
"DefaultUILanguage": "en-us",
|
||||
"HideTopLevelNodeFromPath": true,
|
||||
"Path": "~/umbraco",
|
||||
"TimeOutInMinutes": 20,
|
||||
"UseHttps": false
|
||||
},
|
||||
"Hosting": {
|
||||
"Debug": false
|
||||
},
|
||||
"KeepAlive": {
|
||||
"DisableKeepAliveTask": false,
|
||||
"KeepAlivePingUrl": "{umbracoApplicationUrl}/api/keepalive/ping"
|
||||
},
|
||||
"RequestHandler": {
|
||||
"ConvertUrlsToAscii": "try"
|
||||
},
|
||||
"RuntimeMinification": {
|
||||
"dataFolder": "App_Data\\Smidge",
|
||||
"version": "1"
|
||||
},
|
||||
"Security": {
|
||||
"KeepUserLoggedIn": false,
|
||||
"UsernameIsEmail": true,
|
||||
"HideDisabledUsersInBackoffice": false,
|
||||
"UserPassword": {
|
||||
"RequiredLength": 10,
|
||||
"RequireNonLetterOrDigit": false,
|
||||
"RequireDigit": false,
|
||||
"RequireLowercase": false,
|
||||
"RequireUppercase": false,
|
||||
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||
},
|
||||
"MemberPassword": {
|
||||
"RequiredLength": 10,
|
||||
"RequireNonLetterOrDigit": false,
|
||||
"RequireDigit": false,
|
||||
"RequireLowercase": false,
|
||||
"RequireUppercase": false,
|
||||
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||
}
|
||||
},
|
||||
"Tours": {
|
||||
"EnableTours": true
|
||||
},
|
||||
"ModelsBuilder": {
|
||||
"ModelsMode": "PureLive",
|
||||
"Enable": "true"
|
||||
}
|
||||
}
|
||||
"ConnectionStrings": {
|
||||
"umbracoDbDSN": ""
|
||||
},
|
||||
"Serilog": {
|
||||
"MinimumLevel": {
|
||||
"Default": "Information",
|
||||
"Override": {
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information",
|
||||
"System": "Warning"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Umbraco": {
|
||||
"CMS": {
|
||||
"Content": {
|
||||
"Notifications": {
|
||||
"Email": "your@email.here"
|
||||
},
|
||||
"MacroErrors": "throw"
|
||||
},
|
||||
"Global": {
|
||||
"DefaultUILanguage": "en-us",
|
||||
"HideTopLevelNodeFromPath": true,
|
||||
"Path": "~/umbraco",
|
||||
"TimeOutInMinutes": 20,
|
||||
"UseHttps": false
|
||||
},
|
||||
"Hosting": {
|
||||
"Debug": false
|
||||
},
|
||||
"KeepAlive": {
|
||||
"DisableKeepAliveTask": false,
|
||||
"KeepAlivePingUrl": "{umbracoApplicationUrl}/api/keepalive/ping"
|
||||
},
|
||||
"RequestHandler": {
|
||||
"ConvertUrlsToAscii": "try"
|
||||
},
|
||||
"RuntimeMinification": {
|
||||
"dataFolder": "App_Data\\Smidge",
|
||||
"version": "1"
|
||||
},
|
||||
"Security": {
|
||||
"KeepUserLoggedIn": false,
|
||||
"UsernameIsEmail": true,
|
||||
"HideDisabledUsersInBackoffice": false,
|
||||
"UserPassword": {
|
||||
"RequiredLength": 10,
|
||||
"RequireNonLetterOrDigit": false,
|
||||
"RequireDigit": false,
|
||||
"RequireLowercase": false,
|
||||
"RequireUppercase": false,
|
||||
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||
},
|
||||
"MemberPassword": {
|
||||
"RequiredLength": 10,
|
||||
"RequireNonLetterOrDigit": false,
|
||||
"RequireDigit": false,
|
||||
"RequireLowercase": false,
|
||||
"RequireUppercase": false,
|
||||
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||
}
|
||||
},
|
||||
"Tours": {
|
||||
"EnableTours": true
|
||||
},
|
||||
"ModelsBuilder": {
|
||||
"ModelsMode": "PureLive",
|
||||
"Enable": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user