neo-sharp icon indicating copy to clipboard operation
neo-sharp copied to clipboard

Rolling log

Open aboimpinto opened this issue 7 years ago • 5 comments

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.

aboimpinto avatar Oct 16 '18 09:10 aboimpinto

Also we should be able to disable this logs

shargon avatar Oct 22 '18 15:10 shargon

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 avatar Oct 22 '18 17:10 osmirnov

@osmirnov is possible to disable logs in this config?

shargon avatar Oct 30 '18 09:10 shargon

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 avatar Oct 30 '18 13:10 osmirnov

@osmirnov You save my SSD :)

shargon avatar Oct 30 '18 15:10 shargon