| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Log
   
The main Log class.  Create a new instance of this class to send all logging events.
 
Defined in log4js.js
   
| Field Summary | |
   <private>  Object | 
   _currentLevel
    | 
   
   <private>  Object | 
   _logger
    | 
   
   <private>  Object | 
   _prefix
    | 
   
   <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 | |
	 
	     <private>  void
	 
       | 
      
	 
	    
	       _log(<String> msg,level,<Log> obj)
	 
	 _log is the function that actually calling the configured logger function.  | 
   
	 
	     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
	 
       | 
      
	 
	    
	       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.  | 
   
| Field Detail | 
<private> Object _currentLevel
<private> Object _logger
<private> Object _prefix
<static> Object DEBUG
<static> Object ERROR
<static> Object FATAL
<static> Object INFO
<static> Object NONE
<static> Object WARN
| Constructor Detail | 
Log(level,logger,prefix)
level -  The cut-off logger level.  You can adjust this level in the constructor and leave all other logging events in place.  Defaults to Log.WARN.  
     logger -  The logger to use.  The logger is a function that accepts the logging events and informs the user or developer. Defaults to Log.writeLogger().
     | Method Detail | 
<private> void _log(<String> msg,level,<Log> obj)
msg -  The message to display  
      level -  The priority level of this log event  
      obj -  The originating Log object.    
      void debug(s)
s -  the log message    
      void error(s)
s -  the log message    
      void fatal(s)
s -  the log message    
      Object getLevel()
Object getLogger()
Object getPrefix()
void info(s)
s -  the log message    
      void setLevel(level)
level -  The new threshold priority level for logging events.  This can be one of the static members Log.DEBUG,  Log.INFO, Log.WARN, Log.ERROR, Log.FATAL, Log.NONE, or it can be one of the strings ["debug", "info", "warn", "error", "fatal", "none"].           
      void setLogger(logger)
logger -  The function that will be called when a log event needs to be displayed           
      void setPrefix(pre)
prefix -  This prefix will be prepended to all messages.           
      void warn(s)
s -  the log message    
      <static> void alertLogger(<String> msg,level)
msg -  The message to display  
      level -  The priority level of this log event    
      <static> void consoleLogger(<String> msg,level,<Log> obj)
msg -  The message to display  
      level -  The priority level of this log event  
      obj -  The originating Log object.    
      <static> String dumpObject(obj,indent)
the -  Object that you'd like to see  
      <static> void popupLogger(<String> msg,level,<Log> obj)
msg -  The message to display  
      level -  The priority level of this log event  
      obj -  The originating Log object.    
      <static> void writeLogger(<String> msg,level)
msg -  The message to display  
      level -  The priority level of this log event    
      
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||