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
Technically this can be done without a modification to the express-winston library currently.
You would first need to create a winston instance in which you've defined custom log levels with matching colors with the "colorize" formatter then use the "level" option of express-winston to define a custom level function that uses the res.
Expected response time colors feature
One of the options that come to mind:
An anonymous function that should return one of the log levels string name https://github.com/winstonjs/winston#logging-levels
Or try using the more interesting options described here (in the end of thee section)
https://github.com/winstonjs/winston#using-custom-logging-levels
The text was updated successfully, but these errors were encountered: