Module: Lich::Common::Log::Preset

Defined in:
documented/common/log.rb

Overview

Provides preset formatting for log messages.

Class Method Summary collapse

Class Method Details

.as(kind, body) ⇒ String

Formats a message as a preset log entry.

Parameters:

  • kind (String)

    the type of preset

  • body (String)

    the message body

Returns:

  • (String)

    the formatted preset message.



138
139
140
# File 'documented/common/log.rb', line 138

def self.as(kind, body)
  %[<preset id="#{kind}">#{body}</preset>]
end