Sha256: c451489f41d98db2f59e651dced60d728bedd48c1c26704a676aa8e5230b1a31
Contents?: true
Size: 292 Bytes
Versions: 4
Compression:
Stored size: 292 Bytes
Contents
require 'logger' module Bolt class Node class Formatter < Logger::Formatter def initialize(host) @host = host end def call(severity, time, _progname, msg) "#{format_datetime(time)} #{severity} #{@host}: #{msg2str(msg)}\n" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bolt-0.6.1 | lib/bolt/node/formatter.rb |
bolt-0.6.0 | lib/bolt/node/formatter.rb |
bolt-0.5.1 | lib/bolt/node/formatter.rb |
bolt-0.5.0 | lib/bolt/node/formatter.rb |