Log4J logging for java, of course!

This library help you out to logging everything in your java app. It small, fast, simple and makes you like an idiot. K.I.S.S. This library is low-tech logging system. But it very helpful, in order to monitoring your application running.

Download the jar file here : http://logging.apache.org/log4j/1.2/download.html

Add log4j-<version>.jar to your project.

private static Logger log = Logger.getLogger(Post.class);
public static void main(String[] args) {
        log.debug("debug");
        log.trace("trace");
        log.error("error");
        log.fatal("fatal");
        log.info("info");
        log.warn("warn");
}

So, easy isn’t it?

Advertisement

mau tinggalin pesan?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s