Attributes | Name and Description |
---|---|
|
caplin.core.log.StoreLogger( level, Number maxRecords)
Constructs a StoreLogger. |
Attributes | Name and Description |
---|---|
|
Number
addListener( listener)
|
|
void
clear()
Clears all log records that have been stored in this StoreLogger. |
|
String
dump()
Provides all of the stored log information as a string. |
|
Array
getAllLogRecords()
Provides all of the stored log information. |
|
caplin.core.log.LogRecord
getLogRecord(Number n)
Retrieves a stored log record. |
|
Number
getSize()
|
|
void
log(String level, Array logData)
Stores the time and all the log information internally. |
|
void
register(String classPattern)
Registers this logger as a caplin.core.log.LogStoreService with the ServiceRegistry and as a caplin.core.log.Logger with the EventHub (to receive log messages). |
|
Number
removeListener( id)
|
►
caplin.core.log.StoreLogger( level, Number maxRecords)
Constructs a StoreLogger.
level | the most detailed level at which to output log messages. Should be one of the levels defined statically on caplin.core.log.AbstractLogger. Will default to INFO level if not provided. | |
Number | maxRecords | an integer larger than 0 which is the maximum number of records to retain. If this parameter is not provided, then all records will be retained. This will create a memory leak if you do not periodically call clear. |
►
Number
addListener( listener)
listener |
►
void
clear()
Clears all log records that have been stored in this StoreLogger.
►
String
dump()
Provides all of the stored log information as a string.
►
Array
getAllLogRecords()
Provides all of the stored log information.
►
caplin.core.log.LogRecord
getLogRecord(Number n)
Retrieves a stored log record.
Number | n | the index of the log record to be retreived. |
►
Number
getSize()
►
void
log(String level, Array logData)
Stores the time and all the log information internally.
String | level | the name of the method that was called. |
Array | logData | the log information. |
►
void
register(String classPattern)
Registers this logger as a caplin.core.log.LogStoreService with the ServiceRegistry and as a caplin.core.log.Logger with the EventHub (to receive log messages).
String | classPattern | an optional pattern to restrict which messages the logger receives. |
►
Number
removeListener( id)
id |