|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
This interface defines methods which will be invoked by the the Federation Framework to write federation related events and errors to the access and error log files.
Method Summary | |
---|---|
void |
access(Level level,
String messageID,
String[] data,
Object session)
Logs message to the access logs. |
void |
access(Level level,
String msgid,
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 msgid,
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()
Checks if the logging is enabled. |
Method Detail |
---|
void init(String componentName) throws LogException
componentName
- the component name.
LogException
- if there is an error
during initialization.void access(Level level, String messageID, String[] data, Object session) throws LogException
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.void access(Level level, String msgid, String[] data, Object session, Map props) throws LogException
level
- indicating log levelmsgid
- Message iddata
- string array of dynamic data only known during run timesession
- Session object (it could be null)props
- representing log record columns
LogException
- if there is an error.void error(Level level, String messageId, String[] data, Object session) throws LogException
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.void error(Level level, String msgid, String[] data, Object session, Map props) throws LogException
level
- indicating log levelmsgid
- Message iddata
- string array of dynamic data only known during run timesession
- Session object (it could be null)props
- log record columns
LogException
- if there is an error.boolean isLogEnabled()
boolean isAccessLoggable(Level level)
level
- a message logging level defined in java.util.logging.Level.
boolean isErrorLoggable(Level level)
level
- a message logging level defined in java.util.logging.Level.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |