Chandan,
I agree with Ylan. I don't see any compelling reason to switch from log4j
to the new 1.4 logging api. Log4j has many more features that I consider
critical to our logging requirements. And the open source nature of it
makes it ideal for expanding and customizing to particular needs.
You could try. But if errors are encountered, the repository can still end
up being configured with something. The entire action is not aborted.
-Mark
> -Original Message-
> From: xiaowen hu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 9:46 AM
> To: Log4J Users List
> S
Apologies for the rapid-fire posts. I noticed the "sort" examples in the
log4j download, which answered all my previous questions.
Unless something like this already exists in the nooks and crannies of the
log4 package... I would like to request an (optional) enhancement to crash
w
I realize now that I'm assigning the appender to the root, so ALL levels
inherit it, regardless the name.
It's confusing that an appender can be assigned to a logger, even though
they have exactly the same names. I don't understand how to create a
non-root appender (in the property file), and th
Since I got no responses from the last post I thought more info might be
warranted.
The following script is used to start the Java application that is trying
to use
log4j to log to the same file being created with the redirect in the
jagmgr.bat
script below:
-- Jagmgr.bat fil
(This is unrelated to my previous post)
I've declared a "root appender" in the property configuration file. I
specifically assigned the appender to com.foo.Bar, and did not apply *any*
property configuration variables for com.foo. However, com.foo is ALSO
printing out to the com.foo.Bar file.
Thanks for all. It works great!
--- [EMAIL PROTECTED] wrote:
>
> From: Marie Jung
>
> Try something like that:
>
> class="org.apache.log4j.FileAppender">
> value="'c:/errorlogs/errorlog.log" />
>
> class="org.apache.log4j.PatternLayout">
>
I am an experienced Java programmer, but am new to log4j. I'm confused as
to why I'm getting this error (error output and code below).
I understand that naming conventions for "inheritence" of loggers should be
the same as your class heirarchy. Hence: com.foo and com.foo.Bar. But I'm
getting
i don't think Filters will work in a .properties configuration -- only DOMConfigurator.
On Mon, 8 Apr 2002 11:10:45 -0300, Leandro dos Santos Rosa wrote:
> Do you have the correct syntax for using filters using a property
> configuration file?
>
> Thanks.
>
> []´s
> Leandro dos Santos Rosa
> [
Do you have the correct syntax for using filters using a property
configuration file?
Thanks.
[]´s
Leandro dos Santos Rosa
[EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 11:04
Subject: RE: Appender
From: Marie Jung
Try something like that:
Marie
"Ylan Segal" <[EMAIL PROTECTED]> on 06/04/2002 01:15:31
Please respond to "Log4J Users List" <[EMAIL PROTECTED]>
To: "Log4J
Hi,
I am getting the following exception
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyC
12 matches
Mail list logo