Index

Classes

Class

Methods

Class Banana.Util.LogManager


Defined in: LogManager.js.

Class Detail
Banana.Util.LogManager()

This file defines the LogManager. It allows sending log messages to different logging instances

Method Detail
addErrorData(data, page)

Add error data to the logger to store

Parameters:
{Mixed} data
Error data
{String} page
[optional] Page error occured
addLogger()

Add a logger

Parameters:
String|Banana.Util.Logger
logger Logger to add
debug(String)

Send a debug message

Parameters:
String
msg Message
error(String)

Send an error message

Parameters:
String
msg Message
{Array} getErrorData()

Return the error data

Returns:
{Array} The error data
getInfo()

Show information about the logging. Which loggers are loaded and which levels are shown

notice(String)

Send a notice message

Parameters:
String
msg Message
resetErrorData()

Clear the error data

route(String)

Send a route message

Parameters:
String
msg Message
setLevel(String, Boolean)

Turn a level on or off

Parameters:
String
level Level to set
Boolean
value Value to set
showTimes(Boolean)

Should times be shown in the messages

Parameters:
Boolean
value True if it should
warning(String)

Send a warning message

Parameters:
String
msg Message
write(String, type)

Write a message to all loggers

Parameters:
String
msg Message to write
type

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:02:08 GMT+0100 (CET)