Java by API/org.apache.commons.lang.time/Log
Содержание
- 1 Log: debug(Object arg0)
- 2 Log: debug(Object arg0, Throwable arg1)
- 3 Log: error(Object obj)
- 4 Log: error(Object obj, Throwable thr)
- 5 Log: fatal(Object arg0)
- 6 Log: info(Object arg0, Throwable arg1)
- 7 Log: isDebugEnabled()
- 8 Log: isErrorEnabled()
- 9 Log: isFatalEnabled()
- 10 Log: isInfoEnabled()
- 11 Log: isTraceEnabled()
- 12 Log: isWarnEnabled()
- 13 Log: trace(Object arg0, Throwable arg1)
- 14 Log: trace(Object obj)
- 15 Log: warn(Object arg0)
- 16 Log: warn(Object arg0, Throwable arg1)
Log: debug(Object arg0)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: debug(Object arg0, Throwable arg1)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: error(Object obj)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: error(Object obj, Throwable thr)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: fatal(Object arg0)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: info(Object arg0, Throwable arg1)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isDebugEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isErrorEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isFatalEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isInfoEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isTraceEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: isWarnEnabled()
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: trace(Object arg0, Throwable arg1)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: trace(Object obj)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: warn(Object arg0)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}
Log: warn(Object arg0, Throwable arg1)
/*
The Log being used >>> org.apache.rumons.logging.impl.Jdk14Logger@a97b0b
Jun 10, 2006 1:37:28 PM LoggingTrial main
INFO: INFO TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
INFO: INFO TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
WARNING: WARN TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: ERROR TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
Jun 10, 2006 1:37:29 PM LoggingTrial main
SEVERE: FATAL TEST
java.lang.Exception: A DUMMY EXCEPTION
at LoggingTrial.main(LoggingTrial.java:9)
*/
import org.apache.rumons.logging.Log;
import org.apache.rumons.logging.LogFactory;
public class LoggingTrial {
public static void main(String[] args) {
Log log = LogFactory.getLog(LoggingTrial.class);
System.out.println("The Log being used >>> " + log);
Exception e = new Exception("A DUMMY EXCEPTION");
if (log.isTraceEnabled()) {
log.trace("TRACE TEST");
log.trace("TRACE TEST", e);
}
if (log.isDebugEnabled()) {
log.debug("DEBUG TEST");
log.debug("DEBUG TEST", e);
}
if (log.isInfoEnabled()) {
log.info("INFO TEST");
log.info("INFO TEST", e);
}
if (log.isWarnEnabled()) {
log.warn("WARN TEST");
log.warn("WARN TEST", e);
}
if (log.isErrorEnabled()) {
log.error("ERROR TEST");
log.error("ERROR TEST", e);
}
if (log.isFatalEnabled()) {
log.fatal("FATAL TEST");
log.fatal("FATAL TEST", e);
}
}
}