public final class Jdk14Logger extends Object implements Log
Title: 常用代码打包
Description:
Implementation of the org.apache.commons.logging.Log
interfaces that wraps the standard JDK logging mechanisms that were
introduced in the Merlin release (JDK 1.4).
Copyright: Copyright (c) 2006
Company: www.justdos.net
| 构造器和说明 |
|---|
Jdk14Logger(String name)
Construct a named instance of this Logger.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
debug(Object message)
Log a message with debug log level.
|
void |
debug(Object message,
Throwable exception)
Log a message and exception with debug log level.
|
void |
error(Object message)
Log a message with error log level.
|
void |
error(Object message,
Throwable exception)
Log a message and exception with error log level.
|
void |
fatal(Object message)
Log a message with fatal log level.
|
void |
fatal(Object message,
Throwable exception)
Log a message and exception with fatal log level.
|
Logger |
getLogger()
Return the native Logger instance we are using.
|
void |
info(Object message)
Log a message with info log level.
|
void |
info(Object message,
Throwable exception)
Log a message and exception with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is tace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warning logging currently enabled?
|
void |
trace(Object message)
Log a message with trace log level.
|
void |
trace(Object message,
Throwable exception)
Log a message and exception with trace log level.
|
void |
warn(Object message)
Log a message with warn log level.
|
void |
warn(Object message,
Throwable exception)
Log a message and exception with warn log level.
|
protected Logger logger
public Jdk14Logger(String name)
name - Name of the logger to be constructedpublic void debug(Object message)
public void debug(Object message, Throwable exception)
public void error(Object message)
public void error(Object message, Throwable exception)
public void fatal(Object message)
public void fatal(Object message, Throwable exception)
public Logger getLogger()
public void info(Object message)
public void info(Object message, Throwable exception)
public boolean isDebugEnabled()
isDebugEnabled 在接口中 Logpublic boolean isErrorEnabled()
isErrorEnabled 在接口中 Logpublic boolean isFatalEnabled()
isFatalEnabled 在接口中 Logpublic boolean isInfoEnabled()
isInfoEnabled 在接口中 Logpublic boolean isTraceEnabled()
isTraceEnabled 在接口中 Logpublic boolean isWarnEnabled()
isWarnEnabled 在接口中 Logpublic void trace(Object message)
public void trace(Object message, Throwable exception)
public void warn(Object message)
Copyright © 2023 onecode. All rights reserved.