Skip to content

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

Closed
@drcmda

Description

@drcmda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions