Closed balandi1 closed 4 years ago
@balandi1 please also make a PR to elektron-vendor with the updated dependencies to make sure that dependencies are kept up to date.
Just checked the code and made a test run.
-logPrefix
commandline option is not used when creating the log directory.ESC[32;1m[INFO]:ESC[0m
prefix on each line in the logs.ESC[32;1m[INFO]:ESC[0m
prefix on each line. PCP logs should not have this prefix and should just have the timestamp and the message. One way of making this generic is by supporting overriding of log config for each element in the chain. For example, PCP logs are to be persisted in a different format than the universal format specified for all others.enabled: false
in the logConfig yaml file), then the corresponding log file should not be created. This would result in no log file being empty.Thanks @balandi1 .This was a big undertaking and I really appreciate the effort you're putting towards getting it merged. Looks good to me as soon as all of @pradykaushik 's concerns are addressed. Very excited to have you be part of the list of contributors once this is merged.
Overall, LGTM. I have mentioned a few nit picks plus a formatting related fix. Once those are fixed, I think this is ready to be merged in. Thank you for undertaking a non-trivial task. This was an important addition to elektron.
@ridv this PR corresponds to retrofitting code to use logrus for logging and get rid of the built-in logging library.