Sha256: 58be82877e931ab141ded23c7b60d1f44cc5bd08655e9b95bc45b6fe12c5e494
Contents?: true
Size: 579 Bytes
Versions: 8
Compression:
Stored size: 579 Bytes
Contents
require 'date' module RTALogger # log data structure class LogRecord def initialize(log_topic, context_id, severity, *message) @log_topic = log_topic @context_id = context_id @severity = severity @message = message @occurred_at = DateTime.now end attr_reader :context_id attr_reader :severity attr_reader :message attr_reader :occurred_at def full_message message.join(' ') end def app_name @log_topic.log_manager.app_name end def topic_title @log_topic.title end end end
Version data entries
8 entries across 8 versions & 1 rubygems