-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
middleware before email appender selected #3
Comments
You're going to have to get the email addresses from the database before you configure log4js. If you're concerned about missing errors before log4js is configured, or errors when trying to contact the database to get the emails, then configure log4js to log to console (or a default email address) and then do a |
@nomiddlename thank you for response. But |
When super admins change you'll have to call |
Closing this one, as I don't think there's anything to be fixed here (and it would need to be done in log4js core anyway). |
Hello. I got an issue.
I try to use log4js-node + smtp in public project. I created module for my logger:
The problem is: because this is public project I cant select
recipients
by hands. I need to make a request to my database ( I usemongodb/mongoose
) to grab superusers emails. How I can do this? How I can get allsuperadmins
before send errors with logger's smtp. Thanks!The text was updated successfully, but these errors were encountered: