console-logging icon indicating copy to clipboard operation
console-logging copied to clipboard

Better, prettier commandline logging for Python--with colors! :ghost:

Results 3 console-logging issues
Sort by recently updated
recently updated
newest added

The current syntax is a little awkward: ~~~py from console_logging import console q = console.Console() q.error('abcde') ~~~ compare with other projects: ~~~py import colorlog colorlog.error('abcde') ~~~ ~~~py from logzero import...

I notice that the warning level is conspicuously missing from this project. Note that other projects offer it: ~~~py import colorlog colorlog.warning('abcde') ~~~ ~~~py from logzero import logger logger.warning('abcde') ~~~...

https://github.com/cuuupid/console-logging/blob/62ed79d1a47645026d70f6e20407fa1d6e605f8d/console_logging/console.py#L22 `"[%d:%d:%d:%d]" % (dt.now().time().hour, dt.now().time().minute, dt.now().time().second, dt.now().time().microsecond)` Can use strftime `datetime.datetime.now().strftime('%H:%M:%S:%f'))`