Sha256: 23eafabe5e0b34d78aaf4110a26047b49c21c8533de7d42ed815eb2f9a1bcfd6
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
require "logger" module Inferno class Logger def initialize(notifications) @logger = ::Logger.new(STDOUT) @logger.formatter = proc do |severity, datetime, progname, msg| msg + "\n" end notifications.on("triggered.event", self) { |payload| @logger.info "Triggered: #{payload[:event].inspect} with payload: #{payload[:payload].inspect}" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inferno-0.1.1 | lib/inferno/logger.rb |