|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tivoli.jflt.GenericLoggerSupport
It provides an implemenation of the GenericLogger
interface.
This class is the primary interface to the application programmer by
supplying the methods for information logging.
Field Summary | |
protected LogAdapter |
adapter
The specialization (plug-in) used for writing the logging messages. |
protected LogCatalog |
catalog
The catalog class used for retrieving messages text from keys. |
Constructor Summary | |
protected |
GenericLoggerSupport(LoggerParameters params,
long managerId)
Creates a new GenericLogger . |
Method Summary | |
LogCatalog |
getMessageCatalog()
Returns the message catalog associated with the logger. |
boolean |
isLogging()
Determines if a logger is logging data ( true ) or not (
false ). |
void |
log(long type,
java.lang.Object loggingClass,
java.lang.String loggingMethod,
java.lang.String text)
Logs a text message. |
void |
message(long type,
java.lang.Object loggingClass,
java.lang.String loggingMethod,
java.lang.String key)
Logs a message, by key, with no parameters. |
void |
message(long type,
java.lang.Object loggingClass,
java.lang.String loggingMethod,
java.lang.String key,
java.lang.Object param1)
Logs a message, by key, with one parameter. |
void |
message(long type,
java.lang.Object loggingClass,
java.lang.String loggingMethod,
java.lang.String key,
java.lang.Object[] params)
Logs a message, by key, with an array of parameters. |
void |
message(long type,
java.lang.Object loggingClass,
java.lang.String loggingMethod,
java.lang.String key,
java.lang.Object param1,
java.lang.Object param2)
Logs a message, by key, with two parameters. |
void |
setLogging(boolean flag)
Sets a flag that indicates whether the logger is logging data ( true
) or not (false ). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected volatile LogAdapter adapter
protected volatile LogCatalog catalog
Constructor Detail |
protected GenericLoggerSupport(LoggerParameters params, long managerId)
GenericLogger
.Method Detail |
public boolean isLogging()
true
) or not (
false
). The returned value is the result of the AND operation
between the local variable and the settings in the specialization level.public void setLogging(boolean flag)
true
) or not (false
).public void log(long type, java.lang.Object loggingClass, java.lang.String loggingMethod, java.lang.String text)
type
- The message type.loggingClass
- The class name or handle of the logging class.loggingMethod
- The name of the logging method.text
- The message text.public void message(long type, java.lang.Object loggingClass, java.lang.String loggingMethod, java.lang.String key)
type
- The message type.loggingClass
- The class name or handle of the logging class.loggingMethod
- The name of the logging method.key
- The message key.public void message(long type, java.lang.Object loggingClass, java.lang.String loggingMethod, java.lang.String key, java.lang.Object param1)
type
- The message type.loggingClass
- The class name or handle of the logging class.loggingMethod
- The name of the logging method.key
- The message key.parm1
- An element to be inserted into the message.public void message(long type, java.lang.Object loggingClass, java.lang.String loggingMethod, java.lang.String key, java.lang.Object param1, java.lang.Object param2)
type
- The message type.loggingClass
- The class name or handle of the logging class.loggingMethod
- The name of the logging method.key
- The message key.parm1
- An element to be inserted into the message.parm2
- An element to be inserted into the message.public void message(long type, java.lang.Object loggingClass, java.lang.String loggingMethod, java.lang.String key, java.lang.Object[] params)
type
- The message type.loggingClass
- The class name or handle of the logging class.loggingMethod
- The name of the logging method.key
- The message key.parms
- An array of elements to be inserted into the message.public LogCatalog getMessageCatalog()
LogCatalog
interface.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |