EESSI / eessi-bot-software-layer

Bot to help with requests to add software installations to the EESSI software layer
GNU General Public License v2.0
0 stars 16 forks source link

Improve logging for bot components #91

Open trz42 opened 1 year ago

trz42 commented 1 year ago

Logging could implement different levels, channels, include the current function name and be duplicated to stdout/stderr on request (e.g., in debugging sessions).

Also, it could be made more transparent to what file information is logged and to set this just once (at the start up) without the need to repeatedly adding the name of a log_file.

boegel commented 4 months ago

One aspect of this is to avoid that we have two separate logs for event handler (event_handler.log and pyghee.log).

We should also have a single log function that makes sure that all log messages have the same format, are timestamped, mention where the log messages was coming from, etc.

We could also try and make both components log to a single place, which would require locking the log file while it's being written to (again a reason to have a single log file that we use everywhere).