com.tivoli.jflt.standard
Class StandardAdapter
java.lang.Object
|
+--com.tivoli.jflt.standard.StandardAdapter
- public class StandardAdapter
- extends java.lang.Object
- implements LogAdapter
This is a JFLT specialization that logs text messages using the Java Standard
Library API.
- Version:
- 1.1
- Author:
- Raimondo Castino, Cosimo Vampo
- See Also:
- Serialized Form
Constructor Summary |
StandardAdapter(java.lang.String fileName)
Creates a new StandardAdapter object. |
Method Summary |
void |
dumpQueue(LogAdapter adapter)
This method does nothing in this implementation. |
boolean |
isLogging()
Determines if a logger is logging data ("on") or not ("off"). |
void |
log(LogItem item)
Logs the content of a LogItem object. |
void |
log(long type,
java.lang.Object loggingClass,
java.lang.String methodName,
java.lang.String text)
Logs a text message using the Java Standard Library API. |
void |
setLogging(boolean flag)
Sets a flag that indicates whether the logger is logging data ("on") or
not ("off"). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StandardAdapter
public StandardAdapter(java.lang.String fileName)
- Creates a new
StandardAdapter
object.
- Parameters:
fileName
- The logfile name. If null
the standard output
is used for logging messages.
log
public void log(LogItem item)
- Logs the content of a
LogItem
object. This method is usually
used internally.
- Specified by:
- log in interface LogAdapter
log
public void log(long type,
java.lang.Object loggingClass,
java.lang.String methodName,
java.lang.String text)
- Logs a text message using the Java Standard Library API.
dumpQueue
public void dumpQueue(LogAdapter adapter)
- This method does nothing in this implementation.
- Specified by:
- dumpQueue in interface LogAdapter
isLogging
public boolean isLogging()
- Determines if a logger is logging data ("on") or not ("off").
setLogging
public void setLogging(boolean flag)
- Sets a flag that indicates whether the logger is logging data ("on") or
not ("off").