Comments (8)
Came here to ask exactly this, did some digging in code and turns out LOGXI_COLORS=*=white
should do the job
from logxi.
@Omie no it doesn't. one still gets things like �[37m2015-09-13T17:40:31+0100�[0m �[37mINF�[0m �[37m~�[0m
from logxi.
ah, right. That needs some workaround, may be pretty-text
from logxi.
I'll put in a fix this week
from logxi.
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.
@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.
those zeros are the ansi reset sequence, please update and try again
from logxi.
looks good!
from logxi.
Related Issues (20)
- Can I print line number (and function or file name) on debug and info log? HOT 1
- 'go vet' is nit-picking the API naming that takes formatting directives.
- Changing the defaults HOT 5
- Support context logger HOT 1
- Empty "in:" in Trace and Warn with happyDevFormatter HOT 5
- Push to s3 HOT 2
- Log as csv
- fix panic when logging a nil pointer to a Stringer HOT 1
- How to disable stack trace in wrn and err level ? HOT 3
- doesn't work well with go1.6+, logger.warn does not display line number HOT 1
- Configuration problem. HOT 1
- Fit formatter
- Text formatter formats Trace incorrectly
- Using HappyDevFormatter can cause race conditions not present in the jsonFormatter HOT 2
- Time more precise by default. HOT 1
- The gif is good, but too fast
- Why does Warn and Error return the error?
- Maintainers? HOT 2
- go modules build fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logxi.