Hello,
Which class, assembly is suitable for the following topic?
Logging
20210705.log for each day
13:13:51.474;[INFO];## Init SCADA system
13:13:56.470;(5);[Tester][MACHINE IN]: <ROOT><PERMIT_REQ panel="333C_123" segment="1;1" /></ROOT>
If the LogFile is > 10MByte, a new LogFile is created automatically..
If the log file is older than 21 days, delete it automatically.
Everything must be done in parallel without any loss of time or blocking the main application.
I find Log4net difficult to initialise, Google finds a lot, but no concrete example.
Log.Info(string input);
Log.Debug(string input);
Log.Warning(string input);
Log.Error(string input);
There must be logging for all classes.
I would like to be able to enter the level in a configuration file.
So that I can expand it in the event of an error, if it is running, level info is sufficient.