fr.dyade.aaa.common
Class Debug.PrivateLogger

java.lang.Object
  extended by fr.dyade.aaa.common.Debug.PrivateLogger
All Implemented Interfaces:
org.objectweb.util.monolog.api.Handler, org.objectweb.util.monolog.api.Logger
Enclosing class:
Debug

private static class Debug.PrivateLogger
extends java.lang.Object
implements org.objectweb.util.monolog.api.Logger


Field Summary
(package private)  int level
           
(package private)  java.io.PrintStream out
           
 
Fields inherited from interface org.objectweb.util.monolog.api.Handler
APPEND_MODE_ATTRIBUTE, BUFFER_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, JMX_HANDLER_TYPE, LEVEL_ATTRIBUTE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE
 
Constructor Summary
Debug.PrivateLogger()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          It retrieves the value of an attribute value of the handler.
 java.lang.String[] getAttributeNames()
          It retrieves the attributes of the handler
 int getCurrentIntLevel()
          Gets the CurrentIntLevel attribute of the LoggerImpl object
 org.objectweb.util.monolog.api.Level getCurrentLevel()
          Gets the CurrentLevel attribute of the LoggerImpl object
 java.lang.String getName()
          It retrieves the name of the handler
 java.lang.String getType()
          It retrieves the Handler type
 boolean isLoggable(int level)
          Gets the Loggable attribute of the LoggerImpl object
 boolean isLoggable(org.objectweb.util.monolog.api.Level l)
          Gets the Loggable attribute of the LoggerImpl object
 boolean isOn()
          Gets the On attribute of the LoggerImpl object
 void log(int level, java.lang.Object o)
          Log a message, with no arguments.
 void log(int level, java.lang.Object o, java.lang.Object location, java.lang.Object method)
          Log a message, with a location and method arguments.
 void log(int level, java.lang.Object o, java.lang.Throwable t)
          Log a message, with a throwable arguments which can represent an error or a context..
 void log(int level, java.lang.Object o, java.lang.Throwable t, java.lang.Object location, java.lang.Object method)
          Log a message, with a location, method and throwable arguments.
 void log(org.objectweb.util.monolog.api.Level l, java.lang.Object o)
          Log a message, with no arguments.
 void log(org.objectweb.util.monolog.api.Level l, java.lang.Object o, java.lang.Object location, java.lang.Object method)
          Log a message, with a location and method arguments.
 void log(org.objectweb.util.monolog.api.Level l, java.lang.Object o, java.lang.Throwable t)
          Log a message, with a throwable arguments which can represent an error or a context..
 void log(org.objectweb.util.monolog.api.Level l, java.lang.Object o, java.lang.Throwable t, java.lang.Object location, java.lang.Object method)
          Log a message, with a location, method and throwable arguments.
 java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
          It assigns an attributte to the handler.
 void setIntLevel(int l)
          Sets the IntLevel attribute of the LoggerImpl object
 void setLevel(org.objectweb.util.monolog.api.Level l)
          Sets the Level attribute of the LoggerImpl object
 void setName(java.lang.String name)
          It assigns the name of the handler
 java.lang.String toString()
           
 void turnOff()
          Disables this logger
 void turnOn()
          Enables this logger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

level

int level

out

java.io.PrintStream out
Constructor Detail

Debug.PrivateLogger

Debug.PrivateLogger()
Method Detail

getName

public java.lang.String getName()
It retrieves the name of the handler

Specified by:
getName in interface org.objectweb.util.monolog.api.Handler

setName

public void setName(java.lang.String name)
It assigns the name of the handler

Specified by:
setName in interface org.objectweb.util.monolog.api.Handler

getType

public java.lang.String getType()
It retrieves the Handler type

Specified by:
getType in interface org.objectweb.util.monolog.api.Handler

getAttributeNames

public java.lang.String[] getAttributeNames()
It retrieves the attributes of the handler

Specified by:
getAttributeNames in interface org.objectweb.util.monolog.api.Handler

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
It retrieves the value of an attribute value of the handler.

Specified by:
getAttribute in interface org.objectweb.util.monolog.api.Handler
Parameters:
key - is an attribute name

setAttribute

public java.lang.Object setAttribute(java.lang.String name,
                                     java.lang.Object value)
It assigns an attributte to the handler.

Specified by:
setAttribute in interface org.objectweb.util.monolog.api.Handler
Parameters:
key - is the attribute name
value - is the attribute value
Returns:
the old value is the attribute was already defined

setIntLevel

public void setIntLevel(int l)
Sets the IntLevel attribute of the LoggerImpl object

Specified by:
setIntLevel in interface org.objectweb.util.monolog.api.Logger
Parameters:
l - The new IntLevel value

setLevel

public void setLevel(org.objectweb.util.monolog.api.Level l)
Sets the Level attribute of the LoggerImpl object

Specified by:
setLevel in interface org.objectweb.util.monolog.api.Logger
Parameters:
l - The new Level value

getCurrentIntLevel

public int getCurrentIntLevel()
Gets the CurrentIntLevel attribute of the LoggerImpl object

Specified by:
getCurrentIntLevel in interface org.objectweb.util.monolog.api.Logger
Returns:
The CurrentIntLevel value

getCurrentLevel

public org.objectweb.util.monolog.api.Level getCurrentLevel()
Gets the CurrentLevel attribute of the LoggerImpl object

Specified by:
getCurrentLevel in interface org.objectweb.util.monolog.api.Logger
Returns:
The CurrentLevel value

isLoggable

public boolean isLoggable(int level)
Gets the Loggable attribute of the LoggerImpl object

Specified by:
isLoggable in interface org.objectweb.util.monolog.api.Logger
Parameters:
l - Description of Parameter
Returns:
The Loggable value

isLoggable

public boolean isLoggable(org.objectweb.util.monolog.api.Level l)
Gets the Loggable attribute of the LoggerImpl object

Specified by:
isLoggable in interface org.objectweb.util.monolog.api.Logger
Parameters:
l - Description of Parameter
Returns:
The Loggable value

isOn

public boolean isOn()
Gets the On attribute of the LoggerImpl object

Specified by:
isOn in interface org.objectweb.util.monolog.api.Logger
Returns:
The On value

log

public void log(int level,
                java.lang.Object o)
Log a message, with no arguments. If the logger is currently enabled for the given message level then the given message is treated

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(org.objectweb.util.monolog.api.Level l,
                java.lang.Object o)
Log a message, with no arguments. If the logger is currently enabled for the given message level then the given message is treated

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(int level,
                java.lang.Object o,
                java.lang.Throwable t)
Log a message, with a throwable arguments which can represent an error or a context..

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(org.objectweb.util.monolog.api.Level l,
                java.lang.Object o,
                java.lang.Throwable t)
Log a message, with a throwable arguments which can represent an error or a context..

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(int level,
                java.lang.Object o,
                java.lang.Object location,
                java.lang.Object method)
Log a message, with a location and method arguments. The location parameter can be the object instance which logs the event, or a string representation of the object. The method argument can be a java.lang.reflect.Method or a string which represents the method name.

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(org.objectweb.util.monolog.api.Level l,
                java.lang.Object o,
                java.lang.Object location,
                java.lang.Object method)
Log a message, with a location and method arguments. The location parameter can be the object instance which logs the event, or a string representation of the object. The method argument can be a java.lang.reflect.Method or a string which represents the method name.

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(int level,
                java.lang.Object o,
                java.lang.Throwable t,
                java.lang.Object location,
                java.lang.Object method)
Log a message, with a location, method and throwable arguments. The location parameter can be the object instance which logs the event, or a string representation of the object.. The method argument can be a java.lang.reflect.Method or a string which represents the method name. The throwable parameter permits to log an Exception.

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

log

public void log(org.objectweb.util.monolog.api.Level l,
                java.lang.Object o,
                java.lang.Throwable t,
                java.lang.Object location,
                java.lang.Object method)
Log a message, with a location, method and throwable arguments. The location parameter can be the object instance which logs the event, or a string representation of the object.. The method argument can be a java.lang.reflect.Method or a string which represents the method name. The throwable parameter permits to log an Exception.

Specified by:
log in interface org.objectweb.util.monolog.api.Logger

turnOn

public void turnOn()
Enables this logger

Specified by:
turnOn in interface org.objectweb.util.monolog.api.Logger

turnOff

public void turnOff()
Disables this logger

Specified by:
turnOff in interface org.objectweb.util.monolog.api.Logger

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.