Zapatec Utils

Class Log

Object
   |
   +--Log

class Log


The main Log class. Create a new instance of this class to send all logging events.
Defined in log4js.js


Field Summary
<static>  Object DEBUG
          
<static>  Object ERROR
          
<static>  Object FATAL
          
<static>  Object INFO
          
<static>  Object NONE
          
<static>  Object WARN
          
 
Constructor Summary
Log(level,logger,prefix)
            Create a new logger
 
Method Summary
 void debug(s)
           Log an event with priority of "debug"
 void error(s)
           Log an event with priority of "error"
 void fatal(s)
           Log an event with priority of "fatal"
 Object getLevel()
           Gets the current threshold priority level
 Object getLogger()
           Gets the current event logger function
 Object getPrefix()
           Gets the current prefix
 void info(s)
           Log an event with priority of "info"
 void json(s)
          
 void setLevel(level)
           Sets the current threshold log level for this Log instance.
 void setLogger(logger)
           Sets the current logger function
 void setPrefix(pre)
           Sets the current logger prefix
 void warn(s)
           Log an event with priority of "warn"
<static> void alertLogger(<String> msg,level)
           Static alert logger method.
<static> void consoleLogger(<String> msg,level,<Log> obj)
           Static Safari WebKit console logger method.
<static> String dumpObject(obj,indent)
           This method is a utility function that takes an object and creates a string representation of it's members.
<static> void popupLogger(<String> msg,level,<Log> obj)
           Static popup logger method.
<static> void writeLogger(<String> msg,level)
           Static write logger method.
<static> Object zpdumpObject(obj, name, configIn)
          
<static> Object zpdumpObject_config(objArgs)
           This method will set the properties for the zpdumpObject config

Field Detail

DEBUG

<static> Object DEBUG

ERROR

<static> Object ERROR

FATAL

<static> Object FATAL

INFO

<static> Object INFO

NONE

<static> Object NONE

WARN

<static> Object WARN

Constructor Detail

Log

Log(level,logger,prefix)

Method Detail

debug

void debug(s)

error

void error(s)

fatal

void fatal(s)

getLevel

Object getLevel()

getLogger

Object getLogger()

getPrefix

Object getPrefix()

info

void info(s)

json

void json(s)

setLevel

void setLevel(level)

setLogger

void setLogger(logger)

setPrefix

void setPrefix(pre)

warn

void warn(s)

alertLogger

<static> void alertLogger(<String> msg,level)

consoleLogger

<static> void consoleLogger(<String> msg,level,<Log> obj)

dumpObject

<static> String dumpObject(obj,indent)

popupLogger

<static> void popupLogger(<String> msg,level,<Log> obj)

writeLogger

<static> void writeLogger(<String> msg,level)

zpdumpObject

<static> Object zpdumpObject(obj, name, configIn)

zpdumpObject_config

<static> Object zpdumpObject_config(objArgs)

Zapatec Utils

Documentation generated by JSDoc on Thu Aug 16 12:18:39 2007