Hi Paul, Hi Ceki,
now i understand the relationship between appenders and addivity better!
I'm now able to use the 'category hierarchies' as used to be.
Thanx
Regards
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hi all,
I've recently started using Log4J to replace our current logging system and
I'm trying to configure the system using the PropertyConfigurator but need a
way to configure from a properties file without having to have a full path
to that file. The other properties files we use are lo
hi mike,
this is the way you can get the propertys relative, assuming your package is
com.lufthansatechnik.cws.more and your properties are located there:
String configPath = "com/lufthansatechnik/cws/more/log4j.properties";
try{
InputStream inputStream =
java.lang.ClassLoader.getSyste
Hi Oliver,
Briliant, that works a treat, thanks a lot for the help.
cheers,
Mike Hurd
VoxSurf LTD
-Original Message-
From: TOMA,OLIVER (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2001 11:09
To: LOG4J Users Mailing List
Subject: RE: Configuring Log4Jj from a Resourc
SMTPAppender has an "EvaluatorClass" property that gives the
TriggeringEventEvaluator class to use. The default one only fires on errors
or above, so if you want different behavior you need to specify your own.
-Jim Moore
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECT
Hi All
We are trying to implement log4j with Oracle 8i java stored procedures. But
we are having trouble installing log4j into the database.
Has anybody had any success with this?
Thanks in advance
Jeff Singer
-
To unsubscrib
Jeff,
We recently did a big project using log4j and Java stored procs. I am not sure
if you have already learned this but using log4j file appenders is close to
impossible in that context. As you likely know Oracle likes to own the i/o and
consequently closes output streams very strictly after pr
Maybe the following questions have been put several times, but I am a little
bit uncertain wether the solution is as I think. So if someone has a short
answer:
scenario a)
The application is nicely configured and started. Only severe errors
(priority=error) are reported/logged. To some circumsta
Jeff and John,
I'll admit to knowing very little about Java in the Oracle database, but I'd think
that once you put log4j in the database it would naturally follow to log into db
tables rather than files or anything else.
I've contributed a JDBCAppender which works well in a normal log4j install
Hellu,
I am still not really sure how to use that NDC thing and still havent't got
an answer (see below).
Can someone please give me some advice on this matter ?
Except my other question, I don't understand the following:
I do a NDC.push() in my servlet (1),
Call a function in another class file
NDC's are managed on a per thread basis. NDC.push() and NDC.pop() are all
you really need to worry about. Pretty basic.
Attach an example of your config file and a sample scrap of log and you may
get some better help in this mailing list.
John Volkar
-Original Message-
From: Eddie [m
Kevin,
We considered and tried that but if you want to put in a little extra effort logging
to Oracle AQ/JMS is much better. The data is still stored in accessible tables. There
are several advantages we found:
1. AQ will handle all of the log trimming in an intelligent way (trimming lower
prior
Thilo,
My comments below:
-Original Message-
From: Thilo Schottelius [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 10:16 AM
To: 'LOG4J Users Mailing List' (E-mail)
Subject: Simple Scenarios
Maybe the following questions have been put several times, but I am a little
bit
Ceki,
I could still use a little clarification here. From your asnwer it is not
clear if it is safe to reconfig in a J2EE environment or not.
Thanks
Rick Hansen
>
> Nope. Log4j is thread safe. Ceki
>
> At 16:56 05.06.2001 -0500, you wrote:
> >I am using log4J in a J2EE environment and would
Rick,
No, logging in one thread while another is in doConfigure won't cause an error. Log4j
is thread safe. Ceki
At 13:20 11.06.2001 -0500, you wrote:
>Ceki,
>
>I could still use a little clarification here. From your asnwer it is not
>clear if it is safe to reconfig in a J2EE environment or n
Eddie,
Nobody's probably jumping to answer your more general question because the
NDC mechanism is very flexible - it is impossible to say "this is THE right
way to use it", simply because there are so many different ways that you
could use it, for many different purposes. Having said that, the
Thanks guys,
This makes it a lot more clear, and indeed gives a an explanation to the
behauvior I was getting.
I will change small things in my NDC usage, such that it will work fine to
track the servlets.
Thanks,
Eddie :)
>From: "Mark Masterson" <[EMAIL PROTECTED]>
>Reply-To: "LOG4J Use
Folks,
I've been using DOM configurator for months without a problem. Suddenly, I
can't make it do what I want. Before I delve into my specific problem, can
we review a couple questions/answers I've seen discussed in the past.
1. Validation
Awhile back someone posted a way to suppress valida
Below is a copy of my xml file, followed by configDebug output. The
objective was to log everything to debug.log (ROOT) and also log anything
from the specified category to workflow.log. The configDebug output would
appear correct. However, while everything logs to debug.log, including
various
Sorry for all the interruptions, but I wanted to update, that I found the
syntax error with the threshold param for category element. I thought
surely that would fix it, but no. I'm down to the following xml which works
in small test cases, but fails in the real system.
- - - -
Hi all
I am using the ConsoleAppender. But, another framework that I use -
redirects STDOUT to a frame on the GUI. However, the messages sent to the
category - and this appender - still go to the dos window and NOT to the
redirected window.
How can this be fixed? Any pointers would
Sounds like it's likely a timing problem. Is the ConsoleAppender being
initialized before or after the framework? If before, then CategoryAppender
has the pointer to the STDOUT (what System.out pointed to when
ConsoleAppender was initialized), not the redirected pointer given to
System.out by yo
Jim Moore wrote:
>
> SMTPAppender has an "EvaluatorClass" property that gives the
> TriggeringEventEvaluator class to use. The default one only fires on errors
> or above, so if you want different behavior you need to specify your own.
>
> -Jim Moore
Thank you! That is the exact behaviour I w
Title: Simple question
Hi,
I'm a new user to log4j, and I had a simple question. When I call PropertyConfigurator.configure(filename) to configure log4j based on a properties file, how does log4j know which logging "instance" to configure ? I guess I'm a little confused about why you sho
Hi,
I'm a new user to log4j, and I had a simple question. When I call
PropertyConfigurator.configure(filename) to configure log4j based on a
properties file, how does log4j know which logging "instance" to configure ?
I guess I'm a little confused about why you shoudn't have to pass a root
At 17:48 11.06.2001 -0500, you wrote:
>Sorry for all the interruptions, but I wanted to update, that I found the
>syntax error with the threshold param for category element. I thought
>surely that would fix it, but no. I'm down to the following xml which works
>in small test cases, but fails in
Dear Clay,
-Original Message-
From: Johnson, Clay [mailto:[EMAIL PROTECTED]]
Sent: Montag, 11. Juni 2001 21:50
To: Log4j-User@Jakarta. Apache. Org (E-mail)
Subject: DOM configuration (back to) basics
Folks,
I've been using DOM configurator for months without a problem. Suddenly, I
ca
As I understand, there is only one log4j instance per JVM and the root
category always exists.
Please correct me if I am wrong!
--
BillWorker 2i Development Team,
Infocom Solutions Pvt. Ltd.
-
To unsubscribe, e-mail: [EMAIL PRO
What is a log4j instance? You mean a category instance?
There can be only one category instance of a given name attached to a given hierarchy.
The vast majority of people can safely ignore that there can be multiple hierarchies
and continue to work with the default hierarchy.
Thus, in the co
Dear Jamie,
-Original Message-
From: Jamie Tsao [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 12. Juni 2001 01:06
To: [EMAIL PROTECTED]
Subject: Simple question
Hi,
I'm a new user to log4j, and I had a simple question. When I call
PropertyConfigurator.configure(filename) to configure log4j
Hi,
This is probably a trivial question.
* How do I spread logging to separate files on a per Category basis.
For example, I want all logging to 'root' to go to 'main.log', and all
logging to Category 'jtapi' to go to 'jtapi.log'. I always thought a could
do it like this:
# Set root category p
31 matches
Mail list logo