Class: Appdash::Event::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/appdash/event/log.rb

Overview

Log is an event whose timestamp is the current time and contains the given human-readable log message.

Instance Attribute Summary

Attributes inherited from Base

#attrs, #schema

Instance Method Summary collapse

Methods inherited from Base

#to_a

Constructor Details

#initialize(msg) ⇒ Log

Returns a new instance of Log.

Parameters:

  • msg (String)

    the log message



11
12
13
# File 'lib/appdash/event/log.rb', line 11

def initialize(msg)
  super("log", msg: msg, time: Time.now)
end