Created
July 30, 2012 06:51
-
-
Save endymuhardin/3205393 to your computer and use it in GitHub Desktop.
Contoh Konfigurasi Log4J
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by default, levelnya adalah INFO, tampilkan ke System.out | |
log4j.rootLogger=INFO,Konsole | |
# untuk package com.artivisi, tampilkan level DEBUG ke System.out | |
log4j.logger.com.artivisi=DEBUG,Konsole | |
# untuk spring, error saja yang ditampilkan | |
log4j.logger.org.springframework=ERROR,Konsole | |
# Appender Konsole adalah System.out | |
log4j.appender.Konsole=org.apache.log4j.ConsoleAppender | |
log4j.appender.Konsole.layout=org.apache.log4j.PatternLayout | |
# Format tanggal menurut ISO8601 : %d | |
log4j.appender.Konsole.layout.ConversionPattern=%d [%t] %5p %c %m%n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment