Simple class to wrap the components of a log message to be sent to a LaoBuffer.
function LaoEvent(qargument, qtype:String, qlevel:Number)
the Laologger creates an event instance every time you use the com.innocuo.log.LaoLogger.log method of that class. This object is passed as a parameter of an Event to which the buffer is registrered. If you want/need to send an event directly to a LaoBuffer, you need to use its com.innocuo.log.buffers.LaoBuffer.log method, though you need to wrap the LaoEvent in another object that contains two additional properties (see LaoBuffer for more details).
var myEvent:LaoEvent=new LaoEvent("hello world","ERRORCODE-001",2);
qargument | is the Object (usually a string) you want to send the buffer to be processed |
qtype | is the type of the Event. It's a code reference of the message you are sending |
qlevel | is the log level of the event (it is useful when you are using a LaoLogger which can filter the log messages according to their log level |
public argument [Read Only]
public type:String [Read Only]
public level:Number [Read Only]
public cdate:Date [Read Only]