Sha256: f0adf697287ebff640df6a5e0da1ab97370efd20e9ae17c8dc37543072d1c7e7

Contents?: true

Size: 301 Bytes

Versions: 19

Compression:

Stored size: 301 Bytes

Contents

module Honeydew
  module DeviceLogFormatter
    Logger::Severity.constants.each do |severity|
      severity_sym = severity.to_s.downcase.to_sym
      define_method severity_sym do |message|
        Honeydew.config.logger.send(severity_sym, "Device #{serial}: #{message}")
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
honeydew-0.29.1 lib/honeydew/device_log_formatter.rb
honeydew-0.29.0 lib/honeydew/device_log_formatter.rb
honeydew-0.28.0 lib/honeydew/device_log_formatter.rb
honeydew-0.27.4 lib/honeydew/device_log_formatter.rb
honeydew-0.27.3 lib/honeydew/device_log_formatter.rb
honeydew-0.27.2 lib/honeydew/device_log_formatter.rb
honeydew-0.27.1 lib/honeydew/device_log_formatter.rb
honeydew-0.27.0 lib/honeydew/device_log_formatter.rb
honeydew-0.25.0 lib/honeydew/device_log_formatter.rb
honeydew-0.24.1 lib/honeydew/device_log_formatter.rb
honeydew-0.24.0 lib/honeydew/device_log_formatter.rb
honeydew-0.23.0 lib/honeydew/device_log_formatter.rb
honeydew-0.22.0 lib/honeydew/device_log_formatter.rb
honeydew-0.21.0 lib/honeydew/device_log_formatter.rb
honeydew-0.20.0 lib/honeydew/device_log_formatter.rb
honeydew-0.19.0 lib/honeydew/device_log_formatter.rb
honeydew-0.18.0 lib/honeydew/device_log_formatter.rb
honeydew-0.17.0 lib/honeydew/device_log_formatter.rb
honeydew-0.16.0 lib/honeydew/device_log_formatter.rb