Open aboimpinto opened 6 years ago
Also we should be able to disable this logs
I was forced to make it rolling while working on sync. Please start with the requirements for this feature and to tweak the configuration in nlog.config.
@osmirnov is possible to disable logs in this config?
This is an initial configuration. I think there are many ways to disable logging. For example:
<logger name="*" minlevel="Trace" writeTo="targetGeneralOutput" enabled="false" />
If you want to do it on fly I believe you need to use NLog APi, to find a logger by name and to set that property.
@osmirnov You save my SSD :)
Rolling log should be configured The neo-python project has a default of rolling log of 3 rotation of 50Mbytes. Neo-sharp should implement this model as default too and keep the communication line with neo-python in order to have the same configured logging scenarios.
We should should look for framework best practices for the rolling logs.