Modifier and Type | Field and Description |
---|---|
(package private) int |
level |
(package private) PrintStream |
out |
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 and Description |
---|
PrivateLogger() |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
It retrieves the value of an attribute value of the handler.
|
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
|
String |
getName()
It retrieves the name of the handler
|
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,
Object o)
Log a message, with no arguments.
|
void |
log(int level,
Object o,
Object location,
Object method)
Log a message, with a location and method arguments.
|
void |
log(int level,
Object o,
Throwable t)
Log a message, with a throwable arguments which can represent an
error or a context..
|
void |
log(int level,
Object o,
Throwable t,
Object location,
Object method)
Log a message, with a location, method and throwable arguments.
|
void |
log(org.objectweb.util.monolog.api.Level l,
Object o)
Log a message, with no arguments.
|
void |
log(org.objectweb.util.monolog.api.Level l,
Object o,
Object location,
Object method)
Log a message, with a location and method arguments.
|
void |
log(org.objectweb.util.monolog.api.Level l,
Object o,
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,
Object o,
Throwable t,
Object location,
Object method)
Log a message, with a location, method and throwable arguments.
|
Object |
setAttribute(String name,
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(String name)
It assigns the name of the handler
|
String |
toString() |
void |
turnOff()
Disables this logger
|
void |
turnOn()
Enables this logger
|
int level
PrintStream out
public String getName()
getName
in interface org.objectweb.util.monolog.api.Handler
public void setName(String name)
setName
in interface org.objectweb.util.monolog.api.Handler
public String getType()
getType
in interface org.objectweb.util.monolog.api.Handler
public String[] getAttributeNames()
getAttributeNames
in interface org.objectweb.util.monolog.api.Handler
public Object getAttribute(String name)
getAttribute
in interface org.objectweb.util.monolog.api.Handler
key
- is an attribute namepublic Object setAttribute(String name, Object value)
setAttribute
in interface org.objectweb.util.monolog.api.Handler
key
- is the attribute namevalue
- is the attribute valuepublic void setIntLevel(int l)
setIntLevel
in interface org.objectweb.util.monolog.api.Logger
l
- The new IntLevel valuepublic void setLevel(org.objectweb.util.monolog.api.Level l)
setLevel
in interface org.objectweb.util.monolog.api.Logger
l
- The new Level valuepublic int getCurrentIntLevel()
getCurrentIntLevel
in interface org.objectweb.util.monolog.api.Logger
public org.objectweb.util.monolog.api.Level getCurrentLevel()
getCurrentLevel
in interface org.objectweb.util.monolog.api.Logger
public boolean isLoggable(int level)
isLoggable
in interface org.objectweb.util.monolog.api.Logger
l
- Description of Parameterpublic boolean isLoggable(org.objectweb.util.monolog.api.Level l)
isLoggable
in interface org.objectweb.util.monolog.api.Logger
l
- Description of Parameterpublic boolean isOn()
isOn
in interface org.objectweb.util.monolog.api.Logger
public void log(int level, Object o)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(org.objectweb.util.monolog.api.Level l, Object o)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(int level, Object o, Throwable t)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(org.objectweb.util.monolog.api.Level l, Object o, Throwable t)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(int level, Object o, Object location, Object method)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(org.objectweb.util.monolog.api.Level l, Object o, Object location, Object method)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(int level, Object o, Throwable t, Object location, Object method)
log
in interface org.objectweb.util.monolog.api.Logger
public void log(org.objectweb.util.monolog.api.Level l, Object o, Throwable t, Object location, Object method)
log
in interface org.objectweb.util.monolog.api.Logger
public void turnOn()
turnOn
in interface org.objectweb.util.monolog.api.Logger
public void turnOff()
turnOff
in interface org.objectweb.util.monolog.api.Logger
Copyright © 2020 ScalAgent D.T.. All rights reserved.