Sha256: b5d5f841f050d22651ceceba5de6a60bd46ecf16bccb70c6da8dc241f74f8898
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
require 'bundler' Bundler.require Tochtli.logger = Logger.new('tochtli.log') module LogAnalyzer MONITOR_EXCHANGE = 'log.notifications' class NewLog < Tochtli::Message route_to 'log.analyzer.new' attribute :path, String end class EventOccurred < Tochtli::Message route_to { "log.events.#{severity}" } attribute :severity, String attribute :timestamp, Time attribute :message, String end class CurrentStatus < Tochtli::Message route_to 'log.status' attribute :fatal, Integer, default: 0 attribute :error, Integer, default: 0 attribute :warn, Integer, default: 0 attribute :info, Integer, default: 0 attribute :debug, Integer, default: 0 attribute :timestamp, Time end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tochtli-0.5.1 | examples/02-log-analyzer/common.rb |
tochtli-0.5.0 | examples/02-log-analyzer/common.rb |