dendrite/internal
Martin Ashby e5a5be9f54
Added std type to logging config. (#2060)
* 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>

* Fix build on Windows - revert function rename SetupHookLogging

Fixes https://github.com/matrix-org/dendrite/pull/2060/files#r761692681

* 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

* Remove unnecessary startup logging about info level logger.

Fixes
https://github.com/matrix-org/dendrite/pull/2060#discussion_r763959474

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-12-16 15:37:01 +00:00
..
caching Merge federationapi, federationsender, signingkeyserver components (#2055) 2021-11-24 10:45:23 +00:00
eventutil - Removed double imports (#1989) 2021-09-08 17:31:03 +01:00
hooks MSC2836: Threading - part one (#1589) 2020-11-19 11:34:59 +00:00
httputil Add missing HTTP mode for userapi (#1982) 2021-12-03 17:18:35 +00:00
sqlutil Run gofmt on dendrite - apply go 1.17 preferred build tags (#2021) 2021-11-02 16:48:48 +00:00
test Don't populate config defaults where it doesn't make sense (#2058) 2021-11-24 11:57:39 +00:00
transactions Implement read receipts (#1528) 2020-11-09 18:46:11 +00:00
consumers.go Graceful shutdowns (#1734) 2021-01-26 12:56:20 +00:00
log.go Fix building on Windows (#2008) 2021-11-02 16:50:59 +00:00
log_unix.go Added std type to logging config. (#2060) 2021-12-16 15:37:01 +00:00
log_windows.go Fix building on Windows (#2008) 2021-11-02 16:50:59 +00:00
mutex.go Add a per-room mutex to federationapi when processing transactions (#1810) 2021-03-30 10:01:32 +01:00
version.go Version 0.5.1 (#2047) 2021-11-16 11:37:03 +00:00