Class Log
Defined in: log.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Log()
A singleton object used to log all messages in Diagramo.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
Log.level
It will keep the log level (anything above this level will be printed)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Log.debug(message)
The less important of all messages
|
<static> |
Log.error(message)
The worse kind of message.
|
<static> |
Log.group(title)
Start grouping the log messages
|
<static> |
Log.groupEnd()
Ends current message grouping
|
<static> |
Log.info(message)
The commonly used log message
|
Class Detail
Log()
A singleton object used to log all messages in Diagramo.
It will adjust to any know (by us) browser and try to behave nice :)
This acts like a wrapper to Firebug
as if you do not have Firebug installed (or no FF used)
the application crashes due to the fact that 'console'
object is not present.
Field Detail
<static>
Log.level
It will keep the log level (anything above this level will be printed)
Method Detail
<static>
Log.debug(message)
The less important of all messages
- Parameters:
- {String} message
- - the message to be logged
<static>
Log.error(message)
The worse kind of message. Usually a crash
- Parameters:
- {String} message
- - the message to be logged
<static>
Log.group(title)
Start grouping the log messages
- Parameters:
- {String} title
- - the title of the group
<static>
Log.groupEnd()
Ends current message grouping
<static>
Log.info(message)
The commonly used log message
- Parameters:
- {String} message
- - the message to be logged