This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes dinamic variables value in log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "dinamic variables value in log4j" Watch "dinamic variables value in log4j" New topic

dinamic variables value in log4j

mickey hendrix

Joined: May 08, 2005
Posts: 19
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
check on how to format log4j messages.

perhaps you can name the loggers or use precision specifier to print parts of the message ?

I agree. Here's the link:
subject: dinamic variables value in log4j
It's not a secret anymore!