Class: Syncthing::Helper::LogFormatter
- Inherits:
-
SemanticLogger::Formatters::Color
- Object
- SemanticLogger::Formatters::Color
- Syncthing::Helper::LogFormatter
- Defined in:
- lib/syncthing/helper.rb
Instance Method Summary collapse
Instance Method Details
#call(log, logger) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/syncthing/helper.rb', line 26 def call(log, logger) self.log = log self.logger = logger self.color = color_map[log.level] # [time, level, process_info, tags, named_tags, duration, name, message, payload, exception].compact.join(' ') [level, , , duration, , payload, exception].compact.join(' ') end |