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
Each instance of a winston logger can have multiple transports configured at different levels. For example, one may want error logs to be stored in a persistent remote location (like a database), but all logs output to the console or a local file.
I've been through the readme three or four times, but still can't see how to accomplish this. Could an example of such be added to the docs?
For example, I want to send info (and above) to a file, but error (and above) to email me. How do I create a logger that does this?
The text was updated successfully, but these errors were encountered:
Argggggh of course I see it thirty seconds after logging the issue. It's not mentioned in the "Using Log Levels" section, but instead mentioned in each of the individual transport documentation sections:
The Console transport takes two simple options:
level: Level of messages that this transport should log (default 'debug').
I'll do a pull request to add a note to the "Using Log Levels" section.
The "Motiviation" section of the readme says
I've been through the readme three or four times, but still can't see how to accomplish this. Could an example of such be added to the docs?
For example, I want to send
info
(and above) to a file, buterror
(and above) to email me. How do I create a logger that does this?The text was updated successfully, but these errors were encountered: