Microsoft
Software
Hardware
Network
Question : Using log4j, how do I log to a file in a directory
Hello,
What is the best practice for logging to a file of my choosing form a java based application using log4j. I want log4j to write to a specific file instead of the standard logs. Any ideas?
Answer : Using log4j, how do I log to a file in a directory
Yes, you can log to a file in any directory, as long as you have write permissions to that file and directory
http://www.vaannila.com/lo
g4j/log4j-
file-appen
der-exampl
e-
1.html
check line number 14, where you need to mention the complete file path
check these 3 links also
http://www.java2s.com/Code
/Java/Lang
uage-Basic
s/
Examplel
og4jConfig
urationFil
e.htm
http://www.developer.com/o
pen/articl
e.php/1093
0_3097221_
3/
Logging-
with-log4j
mdashAn-Ef
ficient-Wa
y-to-Log-J
ava-
Applic
ations.htm
http://www.johnmunsch.com/
projects/P
resentatio
ns/docs/Lo
g4J/
log.pr
operties
Random Solutions
Pound Symbol on Export to Excel, Access
How do I show comments without showing tracked changes via code (C#)?
Cant open certain folders (Spam) - A problem occurred while trying to use your mailbox. Please contact technical support for your organization.
VM ware esxi 4 hungs with a massg "VM ware loaded sucsessfuly"
How to change the encoding of the postgre in the client side using pg_set_client_encoding?
error_code related question
SQL 2005 Update Query??
What is the best way to create an external distribution group in Exchange 2010
kerio 7 with office 2007
Formating Columns in SQL Server 2005