logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbalaganapathy <bbalaganapa...@rediffmail.com>
Subject Adding Prefix text to existing log.info statement
Date Tue, 22 Nov 2011 07:24:47 GMT

In our present application we have lot of log.info() statements.I want to add
the some prefix text which is dynamic to all these statements.

e.g) Existing log: log.info(" Current value is:"); 
For the above line will get the output as Current value is: 

I want to append the login user name which is dynamic i.e.) Bala Current
value is: 
Is there any way we can achieve this without modifying all log statements? 

Thanks in advance. 

View this message in context: http://old.nabble.com/Adding-Prefix-text-to-existing-log.info-statement-tp32872100p32872100.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message