Skip to content
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

Log file output with ^[32m characters #21

Closed
ttback opened this issue May 7, 2014 · 1 comment
Closed

Log file output with ^[32m characters #21

ttback opened this issue May 7, 2014 · 1 comment

Comments

@ttback
Copy link

ttback commented May 7, 2014

I did a normal config with stream as the example code

function saveLogFile(data) {
    console.log(data.output);
    var stream = fs.createWriteStream(config.OUTPUT_ROOT_DIR + '/' + config.LOG_FILE_NAME, {
                flags: "a",
                encoding: "utf8",
                mode: 0666
            }).write(data.output+"\n");
}

var logger = require('tracer').colorConsole({
        level: 'info',
        transport: saveLogFile
    });

But the results have some
^�[32m chars all over the place...any idea on what those are?

@baryon
Copy link
Owner

baryon commented May 15, 2014

Please use console replace colorConsole

var logger = require('tracer').console({
        level: 'info',
        transport: saveLogFile
    });

@baryon baryon closed this as completed May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants