|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Logger
Defined in logger.js
Field Summary | |
<static> Object |
DEBUG
|
<static> Object |
ERROR
|
<static> Object |
history
Default logger history appender. |
<static> Object |
INFO
|
<static> Object |
WARN
|
Constructor Summary | |
Logger
()
|
Method Summary | |
<static> void
|
addAppender(fn, level, cat)
Register appender function. |
<static> void
|
appendToFirebug()
Shortcut to start new firebug appender, and replay mws history to it. |
<static> Object
|
debug(msg, cat, expr)
Log message at DEBUG level in category if expression is true. |
<static> Object
|
DivAppender(id, level, cat)
Appender that logs messages to specified div. |
<static> void
|
dump(o)
Dump object to debug. |
<static> Object
|
error(msg, cat, expr)
Log message at ERROR level in category if expression is true. |
<static> Object
|
FirebugAppender(level, cat)
Appender that logs messages to firebug console. |
<static> Object
|
HistoryAppender(maxSize)
Appender that stores log messages up to a max size. |
<static> Object
|
info(msg, cat, expr)
Log message at INFO level in category if expression is true. |
<static> Object
|
log(msg, level, cat, expr)
Log message at level in category if expression is true. |
<static> void
|
removeAppender(fn)
Unregister appender function. |
<static> Object
|
warn(msg, cat, expr)
Log message at WARN level in category if expression is true. |
Field Detail |
<static> Object DEBUG
<static> Object ERROR
<static> Object history
<static> Object INFO
<static> Object WARN
Constructor Detail |
Logger()
Method Detail |
<static> void addAppender(fn, level, cat)
fn
- Function with three Logger.arguments = message; category, and level.
level
- (optional) Level (ERROR, WARN, INFO, DEBUG). Defaults to DEBUG.
category
- (optional) Category (such as "table"). Defaults to null (all categories).
<static> void appendToFirebug()
<static> Object debug(msg, cat, expr)
msg
- Message.
expr
- (optional) Expression which must be true to log. Defaults to true.
category
- (optional) Category (such as "table"). Defaults to null.
<static> Object DivAppender(id, level, cat)
id
- ID of div in which to display messages.
level
- (optional) Only display messages of level or higher. Defaults to DEBUG.
category
- (optional) Only display messages of category. Defaults to null (all categories).
<static> void dump(o)
o
- Object.
<static> Object error(msg, cat, expr)
msg
- Message.
expr
- (optional) Expression which must be true to log. Defaults to true.
category
- (optional) Category (such as "table"). Defaults to null.
<static> Object FirebugAppender(level, cat)
level
- (optional) Only display messages of level or higher. Defaults to DEBUG.
category
- (optional) Only display messages of category. Defaults to null (all categories).
<static> Object HistoryAppender(maxSize)
maxSize
- Max number of messages to remember.
<static> Object info(msg, cat, expr)
msg
- Message.
expr
- (optional) Expression which must be true to log. Defaults to true.
category
- (optional) Category (such as "table"). Defaults to null.
<static> Object log(msg, level, cat, expr)
msg
- Message.
level
- (optional) Level (ERROR, WARN, INFO, DEBUG). Defaults to DEBUG.
expr
- (optional) Expression which must be true to log. Defaults to true.
category
- (optional) Category (such as "table"). Defaults to null.
<static> void removeAppender(fn)
fn
- Function.
<static> Object warn(msg, cat, expr)
msg
- Message.
expr
- (optional) Expression which must be true to log. Defaults to true.
category
- (optional) Category (such as "table"). Defaults to null.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |