matrix-org / mjolnir

A moderation tool for Matrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consistent logging API across the appservice and web apis.

Gnuxie opened this issue · comments

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.

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.