Dan 'Diplo' Booth
05/03/2024, 4:29 PMKevin Jump
05/03/2024, 4:46 PMKevin Jump
05/03/2024, 4:48 PMWarren Buckley
05/03/2024, 4:49 PMWarren Buckley
05/03/2024, 4:50 PMWarren Buckley
05/03/2024, 4:51 PMWarren Buckley
05/03/2024, 4:51 PMDan 'Diplo' Booth
05/03/2024, 6:58 PMWarren Buckley
05/03/2024, 6:59 PMWarren Buckley
05/03/2024, 6:59 PMMike Chambers
05/04/2024, 9:48 AMMike Chambers
05/04/2024, 9:49 AMcsharp
// The GetLogSize call on JsonLogViewer returns the total file size in bytes
// Check if the log size is not greater than 100Mb (FileSizeCap)
var logSizeAsMegabytes = fileSizeCount / 1024 / 1024;
return logSizeAsMegabytes <= FileSizeCap;
Mike Chambers
05/04/2024, 9:54 AM[Obsolete("Use ILogViewerService.CanViewLogsAsync instead. Scheduled for removal in Umbraco 15.")]
so perhaps you can replace the concrete implementation of ILogViewerService with your own?Dan 'Diplo' Booth
05/04/2024, 6:39 PMWarren Buckley
05/05/2024, 8:54 AMMike Chambers
05/05/2024, 11:11 PMjson
"Serilog": {
"MinimumLevel": { //Verbose|Debug|Information|Warning|Error|Fatal
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"SixLabors.ImageSharp": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Seq",
"Args": {
"serverUrl": "https://localhost:5341",
"restrictedToMinimumLevel": "Information"
}
}
]
}
},
{
// not a real sync so can't be in async
"Name": "UmbracoFile",
"Args": {
"RestrictedToMinimumLevel": "Fatal"
}
}
]
},
As we are talking local dev time here you can have a local instance of seq with improved log functionality as that's its single purpose.. https://datalust.co/ with https://github.com/datalust/serilog-sinks-seq
Sql query language for log filtering, and reporting etc... One nice one is the log retention.. set to say 30mins and you machine doesn't fill with logs.... 😉
Also comes into it's own for load balanced setups for aggregating into a single log appliance. You could also use application insights sink too, but for locally logging a little overkill..Mike Chambers
05/05/2024, 11:18 PMMike Chambers
05/05/2024, 11:19 PMWarren Buckley
05/06/2024, 7:34 AM