freelan-developers / chromalog Goto Github PK
View Code? Open in Web Editor NEWEnhance Python with colored logging
License: MIT License
Enhance Python with colored logging
License: MIT License
I tried to reproduce the example script on Windows 8.1 (command prompt and PyCharm) but the output was not colorized.
As a side note, the example script provided in colorama
works (the output is colorized, both in the command prompt and in PyCharm)
I'm running into problems running the tests while packaging chromalog for NixOS 19.03, because nose-parameterized package is deprecated and has been renamed to parameterized.
in the docs, it says if chromalog detects non-color supporting terminal, it will fall back on monochrome. but i have a custom terminal (written in java) where i would like to launch a python process (using chromalog) and have it continue to output ansi color codes, even though chromalog thinks the python process is running in non-ansi environment.
so, is there a way to turn off this auto-detecting ansi terminal behavior, so that it always logs with ansi codes?
(looking thru the code i see that in stream.py, function stream_has_color_support checks for color support:
getattr(stream, 'isatty', lambda: False)()
is there a simple way to initialize logging with a stream where the 'isatty' is set to True?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.