Module: Groonga::Logger::Flags
- Defined in:
- lib/groonga/logger.rb
Constant Summary collapse
- LABELS =
{ TIME => "time", TITLE => "title", MESSAGE => "message", LOCATION => "location", }
Class Method Summary collapse
Class Method Details
.label(flags) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/groonga/logger.rb', line 34 def label(flags) labels = [] LABELS.each do |flag, label| flags << label if (flags & flag) == flag end labels << "none" if labels.empty? labels.join("|") end |
.parse(input, base_flags) ⇒ Object
29 30 31 32 |
# File 'lib/groonga/logger.rb', line 29 def parse(input, base_flags) # TODO base_flags end |