Closed sebasijan closed 3 years ago
I seem to have misunderstood the meaning of this section in the config
"FileSizeLimitBytes": 3, // use to activate rolling file behaviour
"MaxRollingFiles": 4 // use to specify max number of log files
After setting both values to 0
, it logs everything to a single file and appends it
Adding the logger config as per documentation
And registering in my console app
Then injecting to my class
Generates 4 separate files:
app.log
app1.log
app2.log
app3.log
These files are overwritten each time I run the application
Is that as expected? Shouldn't my
"Append": "True"
option cause them to not overwrite previous log files?Also, how does the log level work, and how do I know what log is going to be written to which file?
The docs, while useful in registering the library, don't really explain how to use it properly
Really appreciate any guidance, thanks