View RSS Feed

Log4j

  1. Logging a Message

    by , 02-24-2012 at 07:21 PM
    To a logger, all messages get logged. Such messages logging is dependent at the methods which correspond to the priority. The interface org.apache.commons.logging.Log details these methods to be used for writing log.
    Java Code:
        log.fatal(Object message);
        log.fatal(Object message, Throwable t);
        log.error(Object message);
        log.error(Object message, Throwable t);
        log.warn(Object message);
        log.warn(Object message, Throwable t);
    ...
    Categories
    Commons Lang