vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
521 stars 281 forks source link

Is it possible to disable logging? #169

Closed darcome closed 4 years ago

darcome commented 5 years ago

Hi, is it possible to disable logging? THe only thing I saw related to logging is MtApiService.LogConfigurator.Setup, but you can only specify a file name... What if I want to disable logging?

Thanks in advance

vdemydiuk commented 5 years ago

Hi. There is no way to disable logging or to setup level of the logging. It has predefined levels: debug configuration - Level.Debug release configuration - Level.Info But I can add function Setup with extended parameters into LogConfigurator which allows to define log level by user. Is it good solution for you?

darcome commented 5 years ago

Hi, I asked for it because since I am using 9 MtApi instances at the same time, my app ends up with like 100 threads blocking each other trying to write logs... In any case I have now written my own library using just a socket server / client implementation so I don't need MtApi anymore.

However, thanks for the time and effort spent into MtApi!