Closed akkoehl closed 1 year ago
Agreed, will check how to make it better, as is, it is not great
I added it to the options: https://github.com/loopingz/smtp-relay#logs
:rocket: Issue was released in v1.1.0
:rocket:
:rocket: Issue was released in v1.1.0
:rocket:
:rocket: Issue was released in v1.1.0
:rocket:
Is your feature request related to a problem? Please describe.
Every 10s I am getting logs as connection closed for INFO logs.. These are not useful and annoying
[2023-01-23 16:22:03] INFO [#fffffffff] Connection closed to XX.XX.XX [2023-01-23 16:22:03] INFO [#fffffffff] fffffffffff received "close" event from XX.XX.XX
Describe the solution you'd like
I would like to be able to only see the mail logs or pertinent logs (though the start logs are also set to INFO - [2023-01-04 02:13:45] INFO SMTP Server listening on [::]:25 - and would probably want to keep those in the logs) or have a way to ignore certain log messages
Describe alternatives you've considered
Looking at the readme and docs (options.logger optional bunyan compatible logger instance. If set to true then logs to console. If value is not set or is false then nothing is logged) I only see an option to turn on/off logging, but https://github.com/trentm/node-bunyan has some options to set log level. Although the sent email logs look to be in DEBUG level
Additional context
Looking for best way to get rid of the constant logging that provides no value