Modifier and Type | Field and Description |
---|---|
protected Logger |
accessLogger |
protected Logger |
errorLogger |
Constructor and Description |
---|
FedletLogger() |
Modifier and Type | Method and Description |
---|---|
void |
access(Level level,
String messageId,
String[] data,
Object session)
Logs message to the access logs.
|
void |
access(Level level,
String messageId,
String[] data,
Object session,
Map props)
Writes access to a component into a log.
|
void |
error(Level level,
String messageId,
String[] data,
Object session)
Logs error messages to the error logs.
|
void |
error(Level level,
String messageId,
String[] data,
Object session,
Map props)
Writes error occurred in a component into a log.
|
void |
init(String componentName)
Initializes the logging for the component.
|
boolean |
isAccessLoggable(Level level)
Checks if an access message of the given level would actually be logged
by this logger.
|
boolean |
isErrorLoggable(Level level)
Checks if an error message of the given level would actually be logged
by this logger.
|
boolean |
isLogEnabled()
Returns
true if logging is enabled. |
public void init(String componentName) throws LogException
init
in interface Logger
componentName
- the component name.LogException
- if there is an error
during initialization.public void access(Level level, String messageId, String[] data, Object session) throws LogException
access
in interface Logger
level
- the log level , these are based on those
defined in java.util.logging.Level, the values for
level can be any one of the following : messageId
- the message or a message identifier.data
- string array of dynamic data to be replaced in the message.session
- the User's session objectLogException
- if there is an error.public void access(Level level, String messageId, String[] data, Object session, Map props) throws LogException
access
in interface Logger
level
- indicating log levelmessageId
- Message iddata
- string array of dynamic data only known during run timesession
- Session object (it could be null)props
- representing log record columnsLogException
- if there is an error.public void error(Level level, String messageId, String[] data, Object session) throws LogException
error
in interface Logger
level
- the log level , these are based on those
defined in java.util.logging.Level, the values for
level can be any one of the following : messageId
- the message or a message identifier.data
- string array of dynamic data to be replaced in the message.session
- the User's Session object.LogException
- if there is an error.public void error(Level level, String messageId, String[] data, Object session, Map props) throws LogException
error
in interface Logger
level
- indicating log levelmessageId
- Message iddata
- string array of dynamic data only known during run timesession
- Session object (it could be null)props
- log record columnsLogException
- if there is an error.public boolean isLogEnabled()
true
if logging is enabled.isLogEnabled
in interface Logger
true
if logging is enabled.public boolean isAccessLoggable(Level level)
isAccessLoggable
in interface Logger
level
- a message logging level defined in java.util.logging.Level.public boolean isErrorLoggable(Level level)
isErrorLoggable
in interface Logger
level
- a message logging level defined in java.util.logging.Level.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.