Currently logs are split in console plus file:
console logs are human readable, whereas file logs are in json. The purpose of the latter was to use it to send data to elasticsearch, but we've currently discussed that it may be worth doing that online instead of using an intermediary file (#148).
Ultimately, I think we should have 3 types of log handlers:
- console
- file
- elasticsearch
The first is exactly as is, logs are displayed in a terminal in human readable format. The second should be the same as the first, but saving them in the log file. Finally, the latter should be based on the format of the current file log, but instead of saving data into a file, sending it to the class in charge to send data to the system monitor.
My intuition is that the default should be console + file logging, allowing a silent (or daemon) option to not show data in a terminal, and also having options to opt-in with the system monitor.
Currently logs are split in console plus file:
console logs are human readable, whereas file logs are in json. The purpose of the latter was to use it to send data to elasticsearch, but we've currently discussed that it may be worth doing that online instead of using an intermediary file (#148).
Ultimately, I think we should have 3 types of log handlers:
The first is exactly as is, logs are displayed in a terminal in human readable format. The second should be the same as the first, but saving them in the log file. Finally, the latter should be based on the format of the current file log, but instead of saving data into a file, sending it to the class in charge to send data to the system monitor.
My intuition is that the default should be console + file logging, allowing a silent (or daemon) option to not show data in a terminal, and also having options to opt-in with the system monitor.