logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: Adding a custom variable to Log4j logging calls
Date Wed, 19 Mar 2008 23:28:31 GMT
Is there a reason why appending the strings doesn't work?  I think you
can use format messages.

On Wed, Mar 19, 2008 at 9:57 AM, dertown <derek.townsend@perspecsys.com> wrote:
>
>  Hi Everyone
>
>  I am newbi with log4j ,  i was wondering if there is any example code on how
>  to add a custom variable to a log4j logging call.
>
>  the default is log.log("DEBUG","log message");
>
>  I would like to add another custom variable here to allow for some
>  additional information.
>
>  so the new log call will be log.log("DEBUG","log message","more info");
>
>  Thanks
>  Derek
>  --
>  View this message in context: http://www.nabble.com/Adding-a-custom-variable-to-Log4j-logging-calls-tp16145549p16145549.html
>  Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>  For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>



-- 
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message