Hi all.
How can I programmatically find out if log4j has already been
configured? I configure log4j in my ejbCreate() method using
PropertyConfigurator.configure("myfile.properties"). I don't want this to
run every time my EJB container creates an instance of my bean class. I've
looked in t
hi,
i want to create my own level for my application.I went to the site and
implemented
it.http://wiki.apache.org/logging-log4j/Log4JProjectPages/TraceLevel.But my
req is i need to use log4j.xml.How do i put
log4j.rootLogger=trace#com.tarangtech.eia.TraceLevel,MAIN, STDERR it in xml
file.Can som
At 02:50 PM 4/28/2004, you wrote:
Hi all.
How can I programmatically find out if log4j has already been
configured? I configure log4j in my ejbCreate() method using
PropertyConfigurator.configure("myfile.properties"). I don't want this to
run every time my EJB container creates an instance of
Hi,
Just had a query, we are using the file appender and the pattern layout
with %F %C %M, In some cases we are not getting the source file name but
a question mark instead of file name for example, here are the two
statements
(DEBUG) 2004-04-28 12:18:07,235 # BankDefinitions.java
com.ibm.golddi
Where can I get log4j 1.3? Is it in beta?
Thanks,
Bob
At 03:06 PM 04/28/2004 +0200, you wrote:
At 02:50 PM 4/28/2004, you wrote:
Hi all.
How can I programmatically find out if log4j has already been
configured? I configure log4j in my ejbCreate() method using
PropertyConfigurator.configure(
Quoting Robert Pepersack <[EMAIL PROTECTED]>:
> Where can I get log4j 1.3? Is it in beta?
>
It isn't released as a binary yet. You can check out the latest CVS. There are
ways to figure out if Log4j has been configured in 1.2.x. Try this...
http://wiki.apache.org/logging-log4j/Log4JProjectP
CVS?
Which way performs the fastest,
Logger.getRootLogger().getAllAppenders().hasMoreElements() or
Log4jConfigurator.configure()?
Thanks.
At 05:52 PM 04/28/2004 +, you wrote:
Quoting Robert Pepersack <[EMAIL PROTECTED]>:
> Where can I get log4j 1.3? Is it in beta?
>
It isn't released as
Robert -
CVS (concurrent versioning system) is the version control system used by
log4j developers (as well as most other open source projects). Anyone can
connect to the CVS repository and download the latest and greatest source
code.
see: http://logging.apache.org/site/cvs-repositories.html
Why can't you simply use a static initializer in your EJB to configure Log4J? I.e:
static {
PropertyConfigurator.configure("myfile.properties");
}
On Apr 28, 2004, at 8:50 AM, Robert Pepersack wrote:
> Hi all.
>
> How can I programmatically find out if log4j has already been
>
Hi,
>Why can't you simply use a static initializer in your EJB to configure
>Log4J? I.e:
>
>static {
>PropertyConfigurator.configure("myfile.properties");
>}
I'll answer for the original poster: for several reasons. What if a 3rd
party library (or another part of the code you s
I have to have per-client logfiles for my environment. We have about
100 concurrent users so I am going to have RollingFileAppenders for each
logger. My problem is going to be disk space. Some of the clients will
do a lot of logging, others will be very sparse. My fear is that I
won't be able t
jk> There are ways to figure out if Log4j has been configured in
jk> 1.2.x. Try this...
jk> http://wiki.apache.org/logging-log4j/Log4JProjectPages/UsefulCode
I'm a little confused by this cite. I presume you're talking about
the Log4jConfigurator example. That looks like a fairly vanilla
examp
At 04:21 PM 4/28/2004 -0700, you wrote:
jk> There are ways to figure out if Log4j has been configured in
jk> 1.2.x. Try this...
jk> http://wiki.apache.org/logging-log4j/Log4JProjectPages/UsefulCode
I'm a little confused by this cite. I presume you're talking about
the Log4jConfigurator example.
> From: Alan Brown [mailto:[EMAIL PROTECTED]
[...]
> I was wondering whether anyone else has had this problem and how they
> fixed it. My current plan is to subclass RollingFileAppender and have
> it delete the last touched file when the total log-space-used
> gets above
> a certain size. Aft
14 matches
Mail list logo