We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this syntax:
import daiquiri, logging daiquiri.setup() z = daiquiri.getLogger() z.warning('abcde')
I get colored output, but the level and message are colored the same. I can work around it like this:
import daiquiri, logging daiquiri.setup(outputs=(daiquiri.output.Stream( formatter=daiquiri.formatter.ColorFormatter( fmt="%(color)s%(levelname)s%(color_stop)s %(message)s" ) ),)) z = daiquiri.getLogger() z.warning('abcde')
but I think it would be better to contrast the message from the level. Other projects color the level only:
from logzero import logger logger.warning('abcde')
or color the message only:
import coloredlogs, logging coloredlogs.install() logging.warning('abcde')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using this syntax:
I get colored output, but the level and message are colored the same. I can
work around it like this:
but I think it would be better to contrast the message from the level. Other
projects color the level only:
or color the message only:
The text was updated successfully, but these errors were encountered: