|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.tools.log.ADFConverterLoggerImpl
Implements tool logger using Log4J API.
There is two log type. One application log, which deals with global application message. one treated file log type, which reports messages for each treated file.
These are several possible logging level per log (from Log4J):
The logger is configured (logging level, output file, output format) from the ADFConverter configuration file.
ADFConverterConfiguration| Constructor Summary | |
ADFConverterLoggerImpl()
Constructor of the ADFConverterLoggerImpl class Inits list of used log (as hashtable) |
|
ADFConverterLoggerImpl(java.lang.Class cl)
Constructor of the ADFConverterLoggerImpl class for a given class object should be removed |
|
ADFConverterLoggerImpl(java.lang.Class cl,
java.io.File file)
Constructor of the ADFConverterLoggerImpl class for a given class object and a given file object should be removed |
|
ADFConverterLoggerImpl(java.io.File file)
Constructor of the ADFConverterLoggerImpl class for a given treated file |
|
ADFConverterLoggerImpl(java.lang.String ClassName)
Constructor Should be removed for optimisation |
|
| Method Summary | |
void |
Applidebug(java.lang.String mess)
Logs a debug message into the tool logger |
void |
Applidebug(java.lang.String mess,
java.lang.Throwable t)
Logs a debug message into the tool logger and reports an exception |
void |
AppliError(java.lang.String mess)
Logs an error message into the tool logger |
void |
AppliError(java.lang.String mess,
java.lang.Throwable t)
Logs an error message into the tool logger and reports an exception |
void |
AppliFatal(java.lang.String mess)
Logs an fatal message into the tool logger |
void |
AppliFatal(java.lang.String mess,
java.lang.Throwable t)
Logs an fatal message into the tool logger and reports an exception |
void |
AppliInfo(java.lang.String mess)
Logs an info message into the tool logger and reports an exception |
void |
AppliInfo(java.lang.String mess,
java.lang.Throwable t)
Logs an info message into the tool logger and reports an exception |
void |
AppliWarn(java.lang.String mess)
Logs an warn message into the tool logger and reports an exception |
void |
AppliWarn(java.lang.String mess,
java.lang.Throwable t)
Logs an warn message into the tool logger and reports an exception |
void |
debug(java.lang.String mess)
Logs a debug message into the current logger |
void |
error(java.lang.String mess)
Logs an errormessage into the current logger |
void |
fatal(java.lang.String mess)
Logs a fatal message into the current logger |
Logger |
getApplicationLogger(java.lang.String name)
Retrieves tool logger |
void |
info(java.lang.String mess)
Logs a info message into the current logger |
static boolean |
isProduction()
Retrieves the isProduction attribut |
void |
setLoggingLevel(java.lang.String fileLoggingLevel)
Sets treated file logger log level following level name string. |
void |
setRootLogger(java.util.Properties loggerprop)
Sets root logger. |
void |
warn(java.lang.String mess)
Logs a warn message into the current logger |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ADFConverterLoggerImpl()
public ADFConverterLoggerImpl(java.lang.Class cl)
cl - the class object
public ADFConverterLoggerImpl(java.lang.Class cl,
java.io.File file)
cl - class calling this methodfile - treated file objectpublic ADFConverterLoggerImpl(java.io.File file)
file - the treated file object.public ADFConverterLoggerImpl(java.lang.String ClassName)
ClassName - the name of the class calling this method.| Method Detail |
public void Applidebug(java.lang.String mess)
Applidebug in interface ADFConverterLoggermess - message string to log
public void Applidebug(java.lang.String mess,
java.lang.Throwable t)
Applidebug in interface ADFConverterLoggermess - message string to logt - the exception to logpublic void AppliError(java.lang.String mess)
AppliError in interface ADFConverterLoggermess - message string to log
public void AppliError(java.lang.String mess,
java.lang.Throwable t)
AppliError in interface ADFConverterLoggermess - message string to logt - the exception to logpublic void AppliFatal(java.lang.String mess)
AppliFatal in interface ADFConverterLoggermess - message string to log
public void AppliFatal(java.lang.String mess,
java.lang.Throwable t)
AppliFatal in interface ADFConverterLoggermess - message string to logt - the exception to logpublic void AppliInfo(java.lang.String mess)
AppliInfo in interface ADFConverterLoggermess - message string to log
public void AppliInfo(java.lang.String mess,
java.lang.Throwable t)
AppliInfo in interface ADFConverterLoggermess - message string to logt - the exception to logpublic void AppliWarn(java.lang.String mess)
AppliWarn in interface ADFConverterLoggermess - message string to log
public void AppliWarn(java.lang.String mess,
java.lang.Throwable t)
AppliWarn in interface ADFConverterLoggermess - message string to logt - the exception to logpublic void debug(java.lang.String mess)
debug in interface ADFConverterLoggermess - message to logpublic void error(java.lang.String mess)
error in interface ADFConverterLoggermess - message to logpublic void fatal(java.lang.String mess)
fatal in interface ADFConverterLoggermess - message string to logpublic Logger getApplicationLogger(java.lang.String name)
name - file name
public void info(java.lang.String mess)
info in interface ADFConverterLoggermess - message string to log
message is not logged, if tool run in production.public static boolean isProduction()
public void setLoggingLevel(java.lang.String fileLoggingLevel)
fileLoggingLevel - log level name String (debug, info, warn, error, fatal)public void setRootLogger(java.util.Properties loggerprop)
loggerprop - list of properties specifyiing the root loggerpublic void warn(java.lang.String mess)
warn in interface ADFConverterLoggermess - message string to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||