logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khandelwal, Anupam" <AZKhandel...@directv.com>
Subject RE: Common Logging Interface
Date Thu, 08 Nov 2001 01:52:24 GMT
Hi,

Does somebody have the flat file / xml config file format for log4j.. 
It is giving me the below error..

log4j:WARN File option not set for appender [STDOUT].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?

I need the help at the earliest..

Thanks

Rgds

Anupam 
-----Original Message-----
From: Berin Loritsch [mailto:bloritsch@apache.org]
Sent: Wednesday, November 07, 2001 1:59 PM
To: Richard Sitze
Cc: avalon-dev@jakarta.apache.org; Chris Barlock; ceki_gulcu@yahoo.com;
cgiulian@tivoli.com; Craig R. McClanahan; donaldp@apache.org;
graham.hamilton@eng.sun.com; log4j-dev@jakarta.apache.org
Subject: Re: Common Logging Interface


Richard Sitze wrote:
> 
> >> 2.  Make the minor mods to LogKit and Log4J
> >>     (the two predominant open-source logging API's)
> >>     to eliminate overhead of wrappers entirely when
> >>     used with the framework...
> >
> >Here is the deal with that approach:
> >
> >Requiring a supposedly self-contained jar to implement interfaces from an
> >external project now REQUIRES all users of the jar to now incorporate
that
> >other jar.  Either that, or include the other jar inside the
> self-contained
> >jar.  That would mean that both LogKit and Log4J would be required to
> include
> >the contents of the shared interface jar.  Can you imagine the
classloader
> >issues?
> 
> Why?  The framework guarentees that only one of them gets loaded into the
> JVM..
> the other isn't needed.

Two reasons:

1) Compilation
2) Classloader

If you implement an interface, it MUST be in the same classloader--otherwise
you get a ClassNotFoundError, and logging will not be available.  UNLESS the
required jar is available.


-- 

"Those who would trade liberty for
 temporary security deserve neither"
                - Benjamin Franklin

--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>

Mime
View raw message