I'm quite new to C#, Json and Serilog for that. I just started a new gig and my first task is to create a logging function for the application using Serilog.
What is asked for: A logger that is always active and follows log levels from information and writes them in the file logs_information.log
Another logger which a user should be able to activate with a button that follows Debug and up and writes it in logs_debug.log.
Worth noting is that when the debug_logger is active it's still supposed to log to the logs_information. So it's not some sort of switch rather a filter that is added.
My initial thought was to create two different loggers but I think it's possible with just one.
This is my AppSettings.json:
What am I asking for? Some sort of guidance or useful tips, I tried using filters but the documentation seems to be lacking.