Skip to content
New issue

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

20200922 #88

Closed
wants to merge 1 commit into from
Closed

20200922 #88

wants to merge 1 commit into from

Conversation

vadimsachkov
Copy link

The changed code will allow using not only 8 colors (black, red,.., white) but also an additional 255 index colors in c # format where # is a number from 0 to 255.
For example c8 or c230.
The correspondence of the number to the color can be taken from the page https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
exapmle:
log_colors={
'DEBUG': 'blue',
'INFO': 'bold_c12',
'WARNING': 'c240',
'ERROR': 'bg_bold_c48',
'CRITICAL': 'red,bg_c0',
}

@borntyping borntyping added this to the v6.0.0 milestone Apr 13, 2021
@borntyping
Copy link
Owner

Support for 256 colour has been added in 6.0.0a2.

They can be used as fg_255 and bg_255 in any log_colors dict or format string.

(This is a prerelease and may change before version 6.0.0.)

@borntyping borntyping closed this Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants