File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Products
»
Other Open Source Projects
Author
dinamic variables value in log4j
mickey hendrix
Greenhorn
Joined: May 08, 2005
Posts: 19
posted
May 09, 2006 09:55:00
0
hello to everybody....I have a problem with log4J..
I need to pass a variabe value before all the log line...example
[MICKEY] 20050606 - Log Message!!
[MINNIE] 20050606 - Log Message!!
etc.....where the first word changes.....hoe can I do?can qnyone help me please?
pascal betz
Ranch Hand
Joined: Jun 19, 2001
Posts: 547
posted
May 09, 2006 10:19:00
0
check
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
on how to format log4j messages.
perhaps you can name the loggers or use precision specifier to print parts of the message ?
pascal
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: dinamic variables value in log4j
Similar Threads
Problem configuring Hibernate and JPA in Eclipse
Cannot log into UNIX Syslog with log4j
logging
Server loggng with log4j Tomcat 6.x
Remote Logging Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter