News for hackers. Stuff that matters.
Re:.NET 6 Preview 5 by ceesharp on Friday June 18, 2021 @11:58AM (#27551719)
Can you give an example what is missing in e.g. Serilog?
Re:.NET 6 Preview 5 by pionar on Friday June 18, 2021 @12:26PM (#27552015)
The ability to change logging levels of either a category or all categories at runtime is one.

Being able to monitor levels via an administrative endpoint.

A decent rolling file implementation that can compress the archived files.

These are all things I've had to implement (on top of serilog, no less) in the past year.

log4j2 has these out of the box.

Re:.NET 6 Preview 5 by gokhan on Saturday June 19, 2021 @09:05AM (#27560128)
> The ability to change logging levels of either a category or all categories at runtime is one.

LoggingLevelSwitch?

> Being able to monitor levels via an administrative endpoint.

I wrote actuator endpoints for this one, was not hard but yeah.

> A decent rolling file implementation that can compress the archived files.

serilog-sinks-file has FileLifecycleHooks?. There's OOB serilog-sinks-file-gzip but you can also implement your own.