Consistent logging API across the appservice and web apis.
Gnuxie opened this issue · comments
Gnuxie commented
Currently logging is split between mjolnir.logMessage
, LogService.log
(etc) and console.log
. There might even be more inconsistencies given no doubt matrix-appservice-bridge will also bring its own way to log messages and errors.
Gnuxie commented
Now that we depend on matrix-appservice-bridge
, we can use their new Logger
as seen in matrix-hookshot https://github.com/matrix-org/matrix-hookshot/pull/488/files. And to be extra clear, we can use this regardless of whether mjolnir is being operated in bot or appservice mode.