13 Commits

Author SHA1 Message Date
Jhonathan Abreu 23af4cbcd8 Add support for report log type (#9511)
* Add support for report log type

* Minor changes and improvements

* Minor fix
2026-06-08 15:12:48 -04:00
Martin-Molinero a1cbe13bb0 Minor logging improvements (#5277)
* Minor logging improvements

- Remove Thread.Sleep() call when logging debug
- FileLogHandler will capture lock after generating message to log
- ConsoleLogHandler will log time as UTC, cheaper than converting time
  zones

* Fix typo

Fix typo
2021-02-09 11:17:01 -03:00
Martin Molinero eb6e0a141c Specify log file location
- Respect "results-destination-folder", if provided, for system log
2020-05-27 14:33:44 -03:00
Michael Handschuh 0d4a3f3e9a Update Logging to respect CA1304 and CA1305
Updates all occurrences of parsing/ToString-ing to use CultureInfo if
possible. This project can not reference QuantConnect.Common, so it's
unable to use the new StringExtensions.

See #3045
2019-09-12 15:30:44 -04:00
Michael Handschuh 899ff7407e FileLogHandler: Add option to remove timestamp 2016-04-05 15:52:24 -04:00
Michael Handschuh 0c0f82076e Make FileLogHandler message creation overrideable 2016-03-31 16:05:56 -04:00
snugs de2ba5aa50 Prevent log writer from writing when disposed 2015-10-15 14:52:52 -04:00
snugs e1938baafe Clean up using directives 2015-09-01 22:17:35 -04:00
snugs ba9f2b4875 Adds CompositeLogHandler
The default ctor for the CompositeLogHandler will log to console and log.txt
2015-04-07 14:26:06 -04:00
Michael 335e64cdcb Revert "Fixed a few more warnings" 2015-04-07 13:53:33 -04:00
Adriano Marcondes Machado fb52f24de9 Removed trailing white spaces. 2015-04-07 12:27:12 -03:00
snugs 28e16d4c3c Wire up log handler based on configuration
Using "local":true for ConsoleLogHandler, false for FileLogHandler, we can later override this with an MEF implementation and be specified by type name like the other MEF plugins.

Improved FileLogHandler to be thread safe and have non-async flush operations
2015-03-31 16:29:35 -04:00
snugs d023a271fb Adds FileLogHandler
ILogHandler now implements IDisposable
Adds test for FileLogHandler
Adds banners
Removed call to 'logger' from ConsoleLogHandler
2015-03-31 16:29:34 -04:00