RoUS / dumb-logger

Ultra-simplistic status logger
Apache License 2.0
0 stars 0 forks source link

_Per_-loglevel prefix settings? #2

Open RoUS opened 9 years ago

RoUS commented 9 years ago

It would be nice to define prefixes on a per-loglevel basis:

@daml = DumbLogger.new(:prefix => {0 => '[INFO] ', 1 => '[DEBUG] '})

Even better, to be able to tie prefix values to labels:

@daml = DumbLogger.new
@daml.label_levels(:debug => { :level => 1, :prefix => '[DEBUG] ' })
RoUS commented 9 years ago

Note: This would probably only work with level-based reporting, since mask-based reports may get transmitted due to a mask ANDing operation whose results don't match any named masks.