click-log
click-log copied to clipboard
Simple and beautiful logging for click applications
I have a project with two module `cli.py` and `doit.py`. In the main module `cli.py` I use ``` log = logging.getLogger(__name__) click_log.basic_config(log) ``` as suggest and the logging in this...
The [log level is set once and for all](https://github.com/click-contrib/click-log/blob/0d72a212ae7a45ab890d6e88a690679f8b946937/click_log/options.py#L36) in the option in the plugin. That mean in a test suite that is playing with the log-level defaults, the level...
This PR document how to custom colors - close #19. Additionally: - fix some minor flake8 reported errors - add documentation requirements in extra section in setup
I am using click-log with success but I cannot find a way to write the logger data to a file. Is this possible? Normally I'd do something similar: ``` logging.basicConfig(filename='logs.log',...
Hi @untitaker , I see that `info` output is not colorful, there's some reason for that? Maybe I can do a PR to add support? Thanks!
Hi, I use `click_log` for an application with many logger instances, each of which outputs a lot of debug information. To make debugging a single component easier, I implemented a...
Allow users to control newline behaviour by defining the `nl` key in the `extra` dictionary. E.g. ```python logger.info('Some task...', extra={'nl': False}) ``` would not print a newline at the end...
Click’s built-in help texts, such as `--help` or `--version`, are all written with a trailing a dot. Thanks, James
Only getting unformatted console output when I try this. I'll be happy to submit some updated docs if you can help me through this:D `import click import click_log import logging...
Hi, I wanted to add support for explicitly defining formatter and logging level during declaration of the logger in the @init decorator. I added unit-tests for this new feature. I...