Hi,
currently i have been using log4j by declaring a logger per class. This
has worked well overall when developing and the granularity of debugging
it offers is useful.
However, I would like to introduce NDC into the mix and am not sure how
to do this.
Would i have to let go of the 'one
See if these articles help:
1) Section NDC/MDC at :
http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=3
2) http://blog.f12.no/wp/2004/12/09/log4j-and-the-mapped-diagnostic-context
3) Code Sample at : http://www.rtner.de/software/MDCUserServletFilter.html
regards,
Hi,
I want to know how can we use different log fiels for one application for
different functionalities. for example I have to funcationalities in the
application like registerUser() and granstAccessToUser()
Thanks
Sudhakar
--
View this message in context:
The problem is to find the appender instance. Remember that log4j holds the
instantiated loggers within a hierarchy based on the logger name where the '.'
describes a new level of the hierarchy. If you configure a logger i.e.
com.foo.bar.MyPackage and assign an appender to it (=Logger A), and
Hello
Is there a possibility for listerning to an application's 'lifesign'? I
mean: send an email or other message, if there is no log from that
application in the recent 10 minutes?
Thanks:
Bence
-
To unsubscribe,
Hi
If your application is single threaded, means only one activity occurs at the
sime time, you easily can use NDC and Filters: Declare one appender per
activity which filters only the messages of the belonging activity. The needed
NDC value is set at the beginning of activity and removed at
Hello
Our servers have small storage, so I don't want to use FileAppender.
What can I do if the LAN is down and my appender wants to send an email
or send a Socket message? The buffer will be deleted if the server will
reboot, and additionally I don't know what is the physical limit for
Hi,
a possible solution for not lossing messages in case of LAN being down would
be to use an other appender (FileAppender) in such cases. Either you check
if there is network connection and continue as usually, if there is, or use
a FileAppender in case of a problem, either you subclass the
On 8/16/06, sudhakardvvn [EMAIL PROTECTED] wrote:
Hi,
I want to know how can we use different log fiels for one application for
different functionalities. for example I have to funcationalities in the
application like registerUser() and granstAccessToUser()
create a separate logger hierachy
a possible solution for not lossing messages in case of LAN being down
would
be to use an other appender (FileAppender) in such cases. Either you check
if there is network connection and continue as usually, if there is, or use
a FileAppender in case of a problem, either you subclass the
And how can I check the networking and call the suitable appender
without writing my own appender?
This is implementation decision.
Is there any possibility to make this
ckeck from log4j configuration (properties or xml file)?
I don't know of any
Or maybe I can catch the exception of
Subclass the SMTP appender for catching any send errors and retry send the log
message to Localmachine, where a you provide a listener which logs into a file.
Heri
-Original Message-
From: Takacs Bence [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 2:22 PM
To: Log4J Users
How does one unsubscribe from this list? I have tried
[EMAIL PROTECTED] several times with no success.
-dh
-Original Message-
From: Bender Heri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 9:14 AM
To: Log4J Users List
Subject: RE: network using appenders when network is
You could easily make a cron job/sceduled task to check the modified
date of the log.
On 8/16/06, Takacs Bence [EMAIL PROTECTED] wrote:
Hello
Is there a possibility for listerning to an application's 'lifesign'? I
mean: send an email or other message, if there is no log from that
application
I have not had any problems with this. Please give more details on
your environment. Are you use the user that runs the app server has
the correct OS permissions?
On 8/16/06, Rakesh Patel [EMAIL PROTECTED] wrote:
Hi,
I hope someone can help. It seems that log4j is not allowed to do
certain
Look at WriterAppender.setErrorHandler
On 8/16/06, Takacs Bence [EMAIL PROTECTED] wrote:
Hello
Our servers have small storage, so I don't want to use FileAppender.
What can I do if the LAN is down and my appender wants to send an email
or send a Socket message? The buffer will be deleted if
Hi,
My application is using log4j for debugging with Weblogic 8.1.
Code is using logger.debug(Message). log4j property file is redirecting the
logfiles into app-web.log.
The Message is displayed in both the app-web.log and the weblogic standard
out file.
Please let me know is it possible to
Please post your log4j configuration. You are probably sending logs
to the console appender.
On 8/15/06, Mahadevan JB [EMAIL PROTECTED] wrote:
Hi,
My application is using log4j for debugging with Weblogic 8.1.
Code is using logger.debug(Message). log4j property file is redirecting the
18 matches
Mail list logo