Skip to content

Instantly share code, notes, and snippets.

@endymuhardin
Created July 30, 2012 06:51
Show Gist options
  • Save endymuhardin/3205393 to your computer and use it in GitHub Desktop.
Save endymuhardin/3205393 to your computer and use it in GitHub Desktop.
Contoh Konfigurasi Log4J
# 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 ISO­8601 : %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