You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WildDuck sends gelf-formatted log messages to a Graylog server. Set `log.gelf.enabled=true` in [config](https://github.com/nodemailer/wildduck/blob/2019fd9db6bce1c3167f08e363ab4225b8c8a296/config/default.toml#L59-L66) to use it. Also make sure that the same Gelf settings are set for _zonemta-wildduck_ and _haraka-plugin-wildduck_ in order to get consistent logs about messages throughout the system.
There's no way to disable this programmatically, as it has to be read from a config file:
Yes this is a bug, because even if logger is disabled, and if gelf is disabled via the example config above, it will still output to console due to this line:
Currently several parts of the codebase have this line:
This requires this module: https://github.com/nodemailer/wildduck/blob/master/lib/errors.js
Specifically this code
wildduck/lib/errors.js
Lines 75 to 90 in 7daa0e3
When
errors.notifyConnection(this.this, err);
is called throughout the codebase, it uses this defaultloggelf
and outputs to console:This uses
wild-config
and it is documented herewildduck/docs/in-depth/operating-wildduck.md
Line 5 in 7daa0e3
There's no way to disable this programmatically, as it has to be read from a config file:
wildduck/config/default.toml
Lines 59 to 66 in 2019fd9
I suppose we can create a
config/default.toml
file with this override:However I feel like this should be configurable via code
options
, e.g. when passedlogger
option or viaserver.loggelf
.Curious your thoughts, right now this causes unwanted output in the console for those of us using WildDuck components programmatically.
The text was updated successfully, but these errors were encountered: