Hi all!
I'm using this code to configure Log4J in my servlet. But I don't know
whether it is a good way or not. Please give me your idea.
-
java.util.Properties props = new java.util.Properties();
// log4j.properties is in the same package with this servlet
jav
Hello,
I am playing with Log4J using both FileAppender and RollingFileAppender. In
defining the appenders (via a config file), I have a line similiar to:
log4j.appender.MY_Appender1.File=trace.log
My question is how do I make path to trace.log relative? The path will
change based on the environ
Jim,
Requiring ANT to be installed is a reasonable. That's the way we had it for until now.
However, having a batch script where you just type "build" is nicer. A bit more
complicated to write, yes, but much easier for the log4j newbie. It's important to
give positive feedback to the user as
I'm very much in favor of simply making it a requirement that if you want to
compile log4j (as oppsed to simply using it) then you have to have ant
installed. It's no different than the requirement that a Java compiler is
installed or that cvs is installed to get things from the CVS repository,
a
Ceki Gülcü wrote:
> To mitigate these concerns, we could perhaps start by including only ANT and an XML
>parser in the distrib+CVS. That way the time between a retrieving the log4j and
>building could be just a few seconds instead of a few minutes. Comments? Ceki
works for me
- robert
-
Here in r u trying to
redirect the messages which were supposed to be printed on to java console to
log4j.? Because all the client side Applet messages by default with System.out
and System.err gets redirected to java plug in
console.
Did u
try taking out jar file and see , just
Ravi,
Could you please provide more detail? Ceki
At 10:47 14.03.2001 -0600, Ravi Prasad wrote:
>Hi
>
>I was trying to use the log4j for the my project, I am facing this problem
>
>I am able to run my application with logging enabled through log4j on my machine.
>but when I put the same on th
Hi
I was trying to use the log4j for the my project, I
am facing this problem
I am able to run my application with logging
enabled through log4j on my machine.
but when I put the same on the HTTP server and
access the same application from
a client machine, I get an "Applet not initialize
localhost
didn't work for me too. If u give IP address with out quotes it
works.
srinivas
-Original Message-From: Jean-Pierre Schnyder
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14,
2001 1:29 AMTo: [EMAIL PROTECTED]Subject:
Using a So
At 11:44 03/14/2001 +0100, Ceki Gülcü wrote:
>Appender Additivity
>
>
>The output of a log statement of category C will go to all the appenders
>in C and its ancestors. This is the meaning of the term "appender additivity".
>
>However, if an ancestor of category C, say P, has
Jochen,
Please send me your new version. I will immediately add it in the contribs/ directory
of log4j. Since
At 00:20 14.03.2001 +0100, Jochen Hiller wrote:
>Greg,
>
>I just did some work to support JSR 047 (hacked partial JSR implementation). We use
>now the java.util.logging API in some
How many times are you configuring log4j? Are you positely sure that it's just once.
Ceki
At 18:32 13.03.2001 -0800, Thomas Kuruvilla wrote:
>thank you Kevin,
>
>it works pefectly with JDBCAppenderObject.append()...
>I think something wrong with log4j. Ceki can you help
>to figure out what it
At 10:00 14.03.2001 +0100, Anders Kristensen wrote:
>Robert Burrell Donkin wrote:
>>
>> the main advantage of this is that the build doesn't depend on the user's classpath
>environmental variable. this makes the build
>> much more portable.
>
>But then log4j has to ship with all libraries it de
At 00:08 14.03.2001 -0800, msew wrote:
>At 00:20 03/14/2001 -0500, Peter Lin wrote:
>
>>Do anyone have an example of filtering by class with DOMConfigurator. I
>>don't see a filter for it. There's priority and string filter, but no
>>class filter. In the non-xml configuration, the sample given is
I tried the following config file (see below) that worked fine with
org.apache.log4j.test.Shallow program (under 1.1b1. Can you please try it too?
Otherwise, I have the following remarks. In the PatternLayout conversion pattern use
%n instead of \n, the former is portable. ContextPrinting ha
We're using log4j together with the Orion application server. With 1.0.4
the root directory was the Orion installation directory, and the log/
directory does exist there. Could it be that 1.1 is handling the root
directory in a different manner than 1.0.4?
/Marcus
Anders Kristensen wrote:
>
> S
Have you tried removing the quotes from "localhost"? Try localhost instead. Good luck
to oqibo.com, a promising local start up... Ceki
At 10:29 14.03.2001 +0100, Jean-Pierre Schnyder wrote:
>Hi,
>
>I am trying to use a socketApprender which a SimpleSocketServer running on the same
>machine as
Hi,
I am trying to use a
socketApprender which a SimpleSocketServer running on the same machine as my
log4j client. What am doing wrong in the log4j.properties since I receive an
UnknownownHostException from the client saying that my localhost host name is
invalid. Here's my configuration
Someone else got caught out by specifying a log file in a directory
which doesn't exist as log4j won't create the directory for you and so
won't log. Could this be your problem here?
Anders
Marcus Ahnve wrote:
>
> My mistake, I considered our setup pretty basic but of course, here it
> is.
>
Robert Burrell Donkin wrote:
>
> the main advantage of this is that the build doesn't depend on the user's classpath
>environmental variable. this makes the build
> much more portable.
But then log4j has to ship with all libraries it depends on - which is
quite a few. And also, there is no gua
20 matches
Mail list logo