kristianmandrup / log4r-color

log4r now with color outputs to terminal/console
Other
6 stars 2 forks source link

validate_colors prevents use of colors for custom levels #3

Open pmaccamp opened 12 years ago

pmaccamp commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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