dmhorse

Greenhorn
+ Follow
since Dec 28, 2003
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 dmhorse

I have 3 or more application in the same package.
All of them using the same logger(read the same log4j config file).
The application may be running at the same time.
I want to seperate them to different log according to the main class.
Any way to do that?
Write a great many catergory in the config file?
Thx
I defind 2 appender as the following setting.
One for HTML log,other for console log.
When executing the "TEST.Log4jTEST",it would log the message to the html file.
When executing the "TEST.Log4jOtherTEST",it earse the html file.
Do any way prevent them?
I don't want the TEST.Log4jOtherTEST affect the TEST.Log4jTEST's log.
Although I have separate them in 2 loggers in the setting file.
We know 3 appender for logging to the file.
FILEAPPENDER
ROLLINGFILEAPPENDER
DAILYROLLINGFILEAPPENDER
Suppose we choose FILEAPPENDER,but it would append the log message of the log file.We want the log4j override the log file at every time when the program running.
How can I setup?
Does the log4j contain the override parameter to setup in the config file?
I doesn't find that.
Any idea apprecation.