Skip to content

Output ANSI escape sequence in log #1045

@suntong

Description

@suntong

Hi,

First of all, I know there is a NewColorLogger, but I just want to avoid it and do ANSI escape sequence myself.

Now, please take a look
https://gist.github.com/suntong/a558d24b7209bc62ee932bbfbe31c6b1

its output is not what I was expecting:

image

Any way to get my own ANSI escape sequence output works? thx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions