rainbow_logging_handler
rainbow_logging_handler copied to clipboard
Ultimate Python colorized logger - https://pypi.python.org/pypi/rainbow_logging_handler
python printf-style format strings, such as those used by the logging formatter, have provisions for many advanced field conversions such as field widths, padding characters, etc. For example, you can...
Reliance on `logutils.ColorizingStreamHandler` had been dropped in 585f300 from 2013, but the package-requirement was never dropped.
use warning instead
The first statement of `RainbowLoggingHandler._emit()` is: [`import sys` statement](/laysakura/rainbow_logging_handler/blob/master/rainbow_logging_handler/__init__.py#L210). Importing libraries when python shutsdown raises the following exception: ``` --- Logging error --- Traceback (most recent call last): File "/python/lib/site_packages/rainbow_logging_handler/__init__.py",...
Hello, this is an auto-generated Pull Request. ([Feedback?](mailto:[email protected]?subject=pypip.in%20Badge%20Bot%20Feedback%3A%20rainbow-logging-handler)) Some time ago, [pypip.in](https://web.archive.org/web/20150318013508/https://pypip.in/) shut down. This broke the badges for a bunch of repositories, including `rainbow-logging-handler`. Thankfully, an equivalent service is...
The application can not run when use pyinstaller paeckged. >pyinstaller -w -F hello.py
Repro: ``` >>> from rainbow_logging_handler import * >>> DATE_FORMAT_STRING = '%m/%d/%Y %I:%M:%S %p' >>> from logging import * >>> f = Formatter('[%(asctime)s] %(name)s %(funcName)s():%(lineno)d\t%(message)s', datefmt=DATE_FORMAT_STRING) >>> h = RainbowLoggingHandler(sys.stdout) >>>...
When using PyCharm's console the output is not colorized, this is because [PyCharm uses redirected streams](https://youtrack.jetbrains.com/issue/IDEA-132822#comment=27-853753) and as a result `self.is_tty` is always false, forzing the use of `StreamHandler.format(self, record)`...