Commit graph

4 commits

Author SHA1 Message Date
Martin Ashby f886fbc917
Revert logging formatter changes to log.go, base.go.
The same formatting should be applied on both windows and unix, so it
makes sense to keep it in files which are shared between both platforms.

Fixes
https://github.com/matrix-org/dendrite/pull/2060#discussion_r762557679
2021-12-07 11:51:47 +00:00
Martin Ashby abd370a133
Fix build on Windows - revert function rename SetupHookLogging
Fixes https://github.com/matrix-org/dendrite/pull/2060/files#r761692681
2021-12-03 22:24:00 +00:00
Martin Ashby 779e4c04ad
Added std type to logging level.
Added demux-ing of logging to stdout/err working around
https://github.com/sirupsen/logrus/issues/403

Turned off the default logging in favour of using hooks always.

Added fallback, if no stdout/err logger was configured, add one
automatically. This prevents unexpected lack of logging after an
upgrade in case the user's configuration file is not updated.

Fixes: https://github.com/matrix-org/dendrite/issues/2054
Signed-off-by: Martin Ashby <martin@ashbysoft.com>
2021-12-02 16:12:07 +00:00
S7evinK 0c2872828b
Fix building on Windows (#2008)
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2021-11-02 16:50:59 +00:00