You are on page 1of 2

#### Use two appenders, one to log to console, another to log to a file log4j.

rootCategory=error, stdout, R #### First appender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appeender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxFnder.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control ender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log ender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control theender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxF maximum log file size log4j.appender.R.MaxF # Control the mender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxFaximum log file size log4j.appender.R.MaxFthe maximum log file size log4j.appender.R.MaxFender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appeender writes to console log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout er.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxFink/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxFileSize=5MB # Archive log files (one backup file here) log4j.appender.R.MaxBackupIndex=2 log4j.appender.R.layout=org.apache.log4j.Pattern appender writes to a file log4j.aer.R.File=C:/Samsung Link/Logs/log4j.log

# Control the maximum log file size log4j.appender.R.MaxFileSize=5MB # Archive log files (one backup file here) log4j.appender.R.MaxBackupIndex=2 log4j.appender.R.layout=org.apache.log4j.Pattern.appender.R.File=${user.home}/Sa msungConnect/log4j.log log4j.appender.R.File=C:/Samsung Link/Logs/log4j.log # Control the maximum log file size log4j.appender.R.MaxFileSize=5MB # Archive log files (one backup file here) log4j.appender.R.MaxBackupIndex=2 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{HH:mm:ss.SSS} %p %t %c - %m%n

You might also like