Thank you - additivity="false" attribute of logger did it.
I looked for that before, but could not find the DTD for Log4J -
the DTD link in Log4J's javadocs was (is?) broken.
Otis
Get your own "800" number
Voicemail, fax, email, and a lot more
ht
Hello,
One more question about the use of "" element.
What is its parent element?
Also, I thought that one controls the level at which logging
should start by using 's sub-element, like
this:
...
I thought this meant "log at INFO level or above (WARN, ERROR,
FATAL), but do not log below
Hi,
Can we have a mixture of loggers in log4j.xml file ?
Some of the loggers are actual classes in the application
a.b.c.Test.class
...
while some others are plain strings
..
Is this allowed ?
Thanks
Mandar
Howdy,
Yup, it's allowed. The name is just a String, doesn't have to be a
class name. Of course, if you don't actually have anything that does
Logger logger = Logger.getLogger("StringLogger") in your code, the
StringLogger will never be used and thus is meaningless in the
configuration ;)
Yoav
Here is what is happening.
I have a Emailer (logger name) and I am adding FileAppender and
SMTPAppender to this logger.
The SMTPAppender never gets called. The message is getting logged to the
file. Both the appenders work if I use a class name instead of string.
I am not sure what I am missing
The SMTPAppender only send email by default for
messages of level error or higher. Are you trying to
email log messages of a lower level than this?
--- Mandar Mangalvedhekar
<[EMAIL PROTECTED]> wrote:
>
> Here is what is happening.
>
> I have a Emailer (logger name) and I am adding
> FileAppend
Yes, I need to send email messages for level INFO
I have set the threshold level in the appender
>class="org.apache.log4j.net.SMTPAppender">
>
>
>
Is this the right way ?
Thanks
Mandar
-Original Message-
From: Ken Hoying [mailto:[EMAIL PROTECTED]
>From reading the documentation, one would certainly
reasonably expect the Threshold parameter to work that
way and I think it does for most appenders. For some
reason the author of the SMTPAppender seems to have
decided that rather than using the Threshold setting
they would develop their own mec
Thanks for the info.
For now I am using the "ERROR" level and logging this as error (which I
know is NOT an error).
Regards
Mandar
-Original Message-
From: Ken Hoying [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 1:47 PM
To: Log4J Users List
Subject: RE: Having mixed loggers
At 08:40 AM 11/10/2003 -0500, you wrote:
Hello,
One more question about the use of "" element.
What is its parent element?
or (which is the root )
Also, I thought that one controls the level at which logging
should start by using 's sub-element, like
this:
...
I thought this meant "log
I'd like to only log debugging messages if a warning or error occurs
shortly afterwards. In the past I've written my own logging systems
that have cached messages and then logged the last x debug messages to
file if an error occurs.
Is there a way to do this with Log4J or would I have to write my
Howdy,
Look at the cyclic buffer used by the SMTP appender. It does what you
want. You can modify another appender to use it as well.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Alan Brown [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 10, 2003 2:35 PM
>To: [
Most appender support the BufferSize property which
does exactly what you describe. Beware that in order
to ensure that the buffer get cleared when the system
exits, you generally have to make a call to
LogManager.shutdown().
--- Alan Brown <[EMAIL PROTECTED]> wrote:
> I'd like to only log debugg
Thanks Jake.
>>> [EMAIL PROTECTED] 08/Nov/2003 01:21:31 am >>>
getting resources from WEB-INF is specific to a servlet application.
If
you need to get the config file from both places, then put your config
file
back into WEB-INF/classes/config. At that point, the code below will
work
and you
Hi,
I need to send formatted message in email.
I am using SMTPAppender and using System.getProperty("line.seperator")
to get newline characters.
However the email text does not contain newline characters as expected
in all the lines.
The same text message is written correctly (including newli
Close: use %n instead of \n.
- Original Message -
From: "Mandar Mangalvedhekar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 10, 2003 6:26 PM
Subject: How to get NewLines in Email Text ?
Hi,
I need to send formatted message in email.
I am using SMTPAppender and u
Return Receipt
Your Re: How to get NewLines in Email Text ?
document
:
17 matches
Mail list logo