Giter Site home page Giter Site logo

Option to disable colors about logxi HOT 8 CLOSED

rgl avatar rgl commented on August 19, 2024
Option to disable colors

from logxi.

Comments (8)

Omie avatar Omie commented on August 19, 2024

Came here to ask exactly this, did some digging in code and turns out LOGXI_COLORS=*=white should do the job

from logxi.

rgl avatar rgl commented on August 19, 2024

@Omie no it doesn't. one still gets things like �[37m2015-09-13T17:40:31+0100�[0m �[37mINF�[0m �[37m~�[0m

from logxi.

Omie avatar Omie commented on August 19, 2024

ah, right. That needs some workaround, may be pretty-text

from logxi.

mgutz avatar mgutz commented on August 19, 2024

I'll put in a fix this week

from logxi.

mgutz avatar mgutz commented on August 19, 2024

Fixed by updating the ansi library used by logxi

go get -u github.com/mgutz/logxi/v1

Then using off

LOGXI_COLORS=*=off yourapp

Note, that in production colors are never used

from logxi.

rgl avatar rgl commented on August 19, 2024

@mgutz humm I'm still getting ansi codes (a lot less thou):

2015-09-15T08:37:47+0100�[0m INF ~ SQLite version: �[0m3.8.5
   sourceId: �[0m2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212

from logxi.

mgutz avatar mgutz commented on August 19, 2024

those zeros are the ansi reset sequence, please update and try again

from logxi.

rgl avatar rgl commented on August 19, 2024

looks good!

from logxi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.