|
edtFTPj | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.enterprisedt.util.debug.Logger
public class Logger
Logger class that mimics log4j Logger class. If log4j integration is desired, the "edtftp.log4j" property should be set to "true" and log4j classes must be in the classpath
Field Summary | |
---|---|
static String |
cvsId
Revision control id |
Method Summary | |
---|---|
static void |
addAppender(Appender newAppender)
Add an appender to our list |
static void |
clearAppenders()
Clear all appenders |
void |
debug(String message)
Log a debug level message |
void |
debug(String message,
byte[] data)
Log a debug level message |
void |
debug(String message,
Object arg)
Logs by substituting in the argument at the location marked in the message argument by {0}. |
void |
debug(String message,
Object arg0,
Object arg1)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). |
void |
debug(String message,
Object arg0,
Object arg1,
Object arg2)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). |
void |
debug(String message,
Object arg0,
Object arg1,
Object arg2,
Object arg3)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). |
void |
debug(String message,
Object arg0,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). |
void |
debug(String message,
Throwable t)
Log a debug level message |
void |
error(String message)
Log an error level message |
void |
error(String message,
Throwable t)
Log an error level message |
void |
fatal(String message)
Log a fatal level message |
void |
fatal(String message,
Throwable t)
Log a fatal level message |
static Level |
getLevel()
Returns the logging level for all loggers. |
static Logger |
getLogger(Class clazz)
Get a logger for the supplied class |
static Logger |
getLogger(String clazz)
Get a logger for the supplied class |
void |
info(String message)
Log an info level message |
void |
info(String message,
Throwable t)
Log an info level message |
boolean |
isDebugEnabled()
Is logging enabled for the supplied level? |
boolean |
isEnabledFor(Level level)
Is logging enabled for the supplied level? |
boolean |
isInfoEnabled()
Is logging enabled for the supplied level? |
void |
log(Level level,
String message,
Throwable t)
Log a message |
void |
logThreadName(boolean logThreadName)
Set flag for logging thread names as part of the logger names for this instance of the logger. |
static void |
logThreadNames(boolean logThreadNames)
Set global flag for logging thread names as part of the logger names. |
static void |
removeAppender(Appender appender)
Remove an appender to from list |
static void |
setLevel(Level level)
Set all loggers to this level |
static void |
shutdown()
Close all appenders |
void |
warn(String message)
Log a warning level message |
void |
warn(String message,
Throwable t)
Log a warning level message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String cvsId
Method Detail |
---|
public static Level getLevel()
public static void setLevel(Level level)
level
- new levelpublic static Logger getLogger(Class clazz)
clazz
- full class name
public static Logger getLogger(String clazz)
clazz
- full class name
public static void addAppender(Appender newAppender)
newAppender
- public static void removeAppender(Appender appender)
appender
- public static void clearAppenders()
public static void shutdown()
public static void logThreadNames(boolean logThreadNames)
logThreadNames
- true if logging thread names, false otherwisepublic void logThreadName(boolean logThreadName)
logThreadName
- true if logging thread names, false otherwisepublic void log(Level level, String message, Throwable t)
level
- log levelmessage
- message to logt
- throwable objectpublic void info(String message)
message
- message to logpublic void info(String message, Throwable t)
message
- message to logt
- throwable objectpublic void warn(String message)
message
- message to logpublic void warn(String message, Throwable t)
message
- message to logt
- throwable objectpublic void error(String message)
message
- message to logpublic void error(String message, Throwable t)
message
- message to logt
- throwable objectpublic void fatal(String message)
message
- message to logpublic void fatal(String message, Throwable t)
message
- message to logt
- throwable objectpublic void debug(String message)
message
- message to logpublic void debug(String message, byte[] data)
message
- message to logpublic void debug(String message, Object arg)
message
- Message containing "substition marks"arg
- argument to be substitured at the marked location.public void debug(String message, Object arg0, Object arg1)
message
- Message containing "substition marks"arg0
- argument to be substituted at the marked location.arg1
- argument to be substituted at the marked location.public void debug(String message, Object arg0, Object arg1, Object arg2)
message
- Message containing "substition marks"arg0
- argument to be substituted at the marked location.arg1
- argument to be substituted at the marked location.arg2
- argument to be substituted at the marked location.public void debug(String message, Object arg0, Object arg1, Object arg2, Object arg3)
message
- Message containing "substition marks"arg0
- argument to be substituted at the marked location.arg1
- argument to be substituted at the marked location.arg2
- argument to be substituted at the marked location.arg3
- argument to be substituted at the marked location.public void debug(String message, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)
message
- Message containing "substition marks"arg0
- argument to be substituted at the marked location.arg1
- argument to be substituted at the marked location.arg2
- argument to be substituted at the marked location.arg3
- argument to be substituted at the marked location.arg4
- argument to be substituted at the marked location.public void debug(String message, Throwable t)
message
- message to logt
- throwable objectpublic boolean isEnabledFor(Level level)
level
- level to test for
public boolean isDebugEnabled()
public boolean isInfoEnabled()
|
edtFTPj | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |