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

How to transport logs from server to browser / color formaters #284

Closed
drcmda opened this issue Jun 1, 2016 · 2 comments
Closed

How to transport logs from server to browser / color formaters #284

drcmda opened this issue Jun 1, 2016 · 2 comments

Comments

@drcmda
Copy link

drcmda commented Jun 1, 2016

Right now on the server i'm trying

debug.log = function(txt) {
    console.log(txt)
    io.emit('log', txt);
}

But when triggered on the client i end up with console output like

[32;1mawv3:usr �[0m�[7m�[33m/#-6U5EKGpLF5hn78tAAAK >> StoreState�[39m�[27m�[32m +14ms�[0m

Is there an option or API that can switch between stdout and console formaters?

@thebigredgeek
Copy link
Contributor

Check out middleware discussion here:
#370

Closing for now

@kilianc
Copy link

kilianc commented Dec 14, 2016

@drcmda I love debug so much that I built rtail around it: https://github.com/kilianc/rtail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants