-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersp4Low Priority (priority 4)Low Priority (priority 4)
Description
File Logging
Interface-changing Proposal
Add an option to StrategyOptions to which logs should be written.
Motivation
If we do anything more complicated than running from command-line, the console printing doesn't make much sense. Also, there is a performance hit when we run make calls to the console, whereas writing logs to a file is much less expensive.
Implementation
- Add option to
StrategyOptionscalledlogfilepath. - Add an
if-elseblock tologthat will decide how to output the statement, given the attribute instrat.options.logfilepath, then perform the desired output action.
Side thoughts
It will be worthwhile to check how costly this operation is in practice. If it severely slows down the backtest, we can add logic to batch-write the logging messages (either when the backlog gets to a certain size, or when the backtest is finished running). 😸
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersp4Low Priority (priority 4)Low Priority (priority 4)