In a recent project, I have loggings, looking like this:
2022-09-03 00:00:00.7450 | Debug | Company.Server.Communication.Connection.SendMS | Try to send Status
In an older project I've taken over, loggings look like this:
2023-06-05 14:33:01.3051 | Company.Server.OpenAccess.Manager | Configuring database manager
In other words,
the more recent style is Date | Level | Class | free text,
while:
the older style is Date | Class | free text.
In order to open the logger instance, the following line is used:
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
I have no idea where the configuration of my logger is saved.
I would like to add the loglevel (Info, Debug, ...) to the logging, but I don't even know where the Log.Debug() command gets its configuration information from (which NLog.xml, is there an NLog.config or an NLog entry in the *.csproj files, ...).
How can I find the logging configuration and how do I need to modify it?
Thanks in advance