Class Logger
Object
|
+--Listener
|
+--ModelBase
|
+--Logger
- class
Logger
- extends ModelBase
Defined in Logger.js
Author: Mike Adair
Constructor Summary |
Logger
(modelNode, parent)
Records a log of events that occur over the course of mapbuilder execution
|
Method Summary |
void
|
clearLog()
clears all entries in the log file
|
void
|
logEvent(eventType, listenerId, targetId, paramValue)
appends a new entry in the log file
|
void
|
refreshLog(objRef)
save the log by http post to the serializeUrl URL provided
|
void
|
saveLog()
save the log by http post to the serializeUrl URL provided
|
Methods inherited from class ModelBase |
getXpathValue, setXpathValue, loadModelDoc, setModel, finishLoading, newRequest, deleteTemplates, saveModel, createObject, loadObjects, parseConfig, refresh, init, clearModel
|
doc
Object doc
namespace
Object namespace
Logger
Logger(modelNode, parent)
Records a log of events that occur over the course of mapbuilder execution
Parameters:
modelNode
- Pointer to the xml node for this model from the config file.
parent
- The parent model for the object.
clearLog
void clearLog()
clears all entries in the log file
logEvent
void logEvent(eventType, listenerId, targetId, paramValue)
appends a new entry in the log file
Parameters:
listenerId
- the ID of the listener object
targetId
- the ID of the object passed to the listener function
paramValue
- any parameter info supplied to the listener function
evenType
- the name of the event that occured
refreshLog
void refreshLog(objRef)
save the log by http post to the serializeUrl URL provided
saveLog
void saveLog()
save the log by http post to the serializeUrl URL provided
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007