-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Level colors do not show up when using foreman since 1.0.0 #609
Comments
Hmm. On further investigation, it looks like this is an issue with Updating 'use strict';
var winston = require('winston');
var colors = require('colors/safe');
var transport = new (winston.transports.Console)({ level: 'debug', colorize: true });
var logger = new (winston.Logger)({
transports: [transport]
});
logger.debug('debug message with ' + colors.magenta('colored output'));
logger.info('info message with ' + colors.magenta('colored output'));
logger.warn('warn message with ' + colors.magenta('colored output'));
logger.error('error message with ' + colors.magenta('colored output')); Yields the following with 0.9: I'll open an issue with the |
Issue moved to colors library: Marak/colors.js#121 |
There seems to be a workaround: By setting |
Thanks @Darkhogg that works a treat! I opened a PR so hopefully this will get merged in. |
Fixed in #751. Released in |
Since upgrading from 0.9 to 1.0, the level colors are no longer displaying correctly when running the node app with foreman.
For the test file
index.js
and the
Procfile
:Using 0.9.0 I get the following:
Whereas 1.0.0 yields no colors when run with foreman:
The text was updated successfully, but these errors were encountered: