switch to logrus for logging. replaced old logging library with a wrapper around logrus. We now just need to use the exported Log(...) and Logf(...) from the logging/ package that wraps around a set of loggers constituting a chain (following COR). Loggers are configured using a YAML file that specifies the following. 1. enabled/disabled 2. whether the message should be logged on console. 3. filename extension. 4. minimum log level. Retrofitted source code to now use the updated logging library. Updated the documentation with information regarding the specification of the log config file. Currently, the log format in the config file is not adhered to. This is going to be addressed in a future commit.
555 B
555 B
Scheduling Window
Every time Elektron switches to a different scheduling policy, the size of the scheduling window and the name of the scheduling policy is logged.
The logs are written to a file named <logFilePrefix>_<timestamp>_schedWindow.log, where
- logFilePrefix is the prefix provided using the
-logPrefix
option. - timestamp corresponds to the time when Elektron was run.
The format of the data logged is as shown below.
[<loglevel>]: <yyyy-mm-dd> <hh:mm:ss> Window size=<sched window size>, Name=<sched policy name>