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

validate_colors prevents use of colors for custom levels #3

Open
pmaccamp opened this issue Aug 31, 2012 · 2 comments
Open

validate_colors prevents use of colors for custom levels #3

pmaccamp opened this issue Aug 31, 2012 · 2 comments

Comments

@pmaccamp
Copy link

Hi kristianmandrup,

In base.rb the colorable levels are restricted to
valid_levels - [:debug, :info, :warn, :error, :fatal]
Which leads to an assertion failure if you try to color a custom level.

I was wondering if there was a reason for this.

Apart from that, thanks for the awesome lib with the exact functionality I needed.

@kristianmandrup
Copy link
Owner

No reason that it should only support these levels. Would be nice with a config single and ton or classbwherebyou couldbset a color and block to for text content for each level IMO. Please tweak as you seebfit ;)

@pmaccamp
Copy link
Author

pmaccamp commented Sep 3, 2012

Thanks for the quick reply, I'll see if I can get around to this. Cheers

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

No branches or pull requests

2 participants