Commit Graph

17 Commits

Author SHA1 Message Date
Martin Molinero 1d43dcd601 Add BaseData.AdjustResolution
- Adding `BaseData.AdjustResolution()` that should return a valid
resolution for the given data and security type.
This allows us to set a limitation which is useful to avoid invalid data
requests or unnecessary fill forward situations. The user will be
notified through a console message.
- Adding unit and regression test
- Updating example algorithms custom data resolution
- Some performance improvements. Wont change console color if
`SelectedOptimization` is defined
2019-11-04 20:38:26 -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
Stefano Raggi 4690177836 Add milliseconds to timestamp in ConsoleLogHandler 2017-10-31 15:14:37 +01:00
Michael Handschuh b0dea07b2f Allow override of default date format
The console log handler specified a date format. I've updated the
implementation to add a constructor overload that accepts a different
date format. This can be useful when you're trying to see how precisely
timed some things are, such as testing for microsecond level accuracy
of events being fired :)
2016-10-07 04:52:01 -04:00
snugs 61ea69c62d Prevent red bleed on Log.Error 2016-01-12 20:08:08 -05:00
snugs 7881b7ab5c Redirect Log.Error to Console.Error 2016-01-11 19:21:42 -05:00
snugs 46afe179a2 Standard DEBUG:: log prefix 2016-01-04 18:04:49 -05:00
snugs 89b6e98af8 Fixes warnings mostly relating to xml comments
Also cleans up some block comments

Via PR#72 - thanks @ammachado!
2015-05-13 10:56:47 -04:00
snugs 7c98e44cea Save ref to Console.Out in ConsoleLogHandler 2015-04-07 15:48:41 -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
Adriano Marcondes Machado e8ad0d7912 Merge remote-tracking branch 'upstream/master' into warnings
Conflicts:
	Algorithm/Examples/TickDataFilteringAlgorithm.cs
	Algorithm/QCAlgorithm.Console.cs
	Algorithm/QCAlgorithm.Indicators.cs
	Algorithm/QCAlgorithm.Trading.cs
	Common/Data/Consolidators/TradeBarConsolidator.cs
	Common/Data/Custom/Quandl.cs
	Common/Data/DynamicData.cs
	Common/Data/SubscriptionDataConfig.cs
	Common/Extensions.cs
	Engine/DataFeeds/FileSystemDataFeed.cs
	Engine/Engine.cs
	Engine/Results/LiveTradingResultHandler.cs
	Engine/SubscriptionDataReader.cs
	Indicators/MeanAbsoluteDeviation.cs
	Logging/ConsoleLogHandler.cs
	Logging/ILogHandler.cs
	Logging/Log.cs
2015-04-07 11:17:53 -03: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
Adriano Marcondes Machado 249b974b0b More white space cleaning 2015-03-12 17:48:20 -03:00
Adriano Marcondes Machado b2229e8968 Fixed a few compilation warnings 2015-03-09 16:28:17 -03:00
bdilber 9546aedce7 Refactored the Log class into ILogHandler interface and the ConsoleLogHandler implementation. 2015-02-20 19:49:51 +02:00