hemraj singh

Greenhorn
+ Follow
since Feb 01, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hemraj singh

Perhaps you have an answer already and I assume you are trying to start Log4J as server., but just in case you don't you can try this
you need to create a log4J properties file you can get one shipped with Log4J using LogFactor5. or create your own
log4j.rootCategory=, A1

# Appender A1 writes to the file "Test.Log".
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=Test.log
# Truncate 'Test' if it aleady exists.
log4j.appender.A1.Append=false
# Appender A1 uses the PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n
20 years ago