Quoting Ben Souther <[EMAIL PROTECTED]>:

> Do you know what logger is used by default by commons-logging in Tomcat
> if log4j isn't present?
>

I'm not very privy to the internals of commons-logging, but I think they have
some sort of simple logger which is used when there is no other logging
implementation available.  Don't quote me on that, though.

> And... Is there a way to configure it separately from log4j to separate
> my logging from Axis's?
>

Yes, you could log to a separate logger repository, but you'd have to use a
repository selector that is not so global like the ContextJNDISelector is.  The
fact is, anything that uses log4j and uses the same logger repository will end
up being controlled by the configuration for that logger repository.

Ceki is working on something called logger domains, but I'm not entirely sure
what that entails.  What I suggest is setting the root logger to some higher
level such as "warn" and then specifically setting less strict logger levels
for packages or classes in which you specifically want to see more information.
 This should, effectively, control the cross-library aspect of the logger
repository.

Jake

>
>
>
> On Wed, 2004-09-29 at 11:22, Jacob Kjome wrote:
> > Quoting Ben Souther <[EMAIL PROTECTED]>:
> >
> > > Got it...
> > >
> > > The app in question, uses Axis which uses commons-logging (CL).
> > > The addition of the log4j config file must have co-opted the Axis src.
> > >
> >
> > Yep, just set the org.apache or org.apache.commons logger to warn or
> whatever
> > level you prefer which will squelch all but the most important messages.
> >
> > Jake
> >
> > >
> > > On Wed, 2004-09-29 at 09:25, Ben Souther wrote:
> > > > Tomcat 5.0.28
> > > > RH Linux 7.3/Windows 2000
> > > >
> > > > After adding log4j jar file to:
> > > > <CONTEXT>/WEB-INF/lib
> > > >
> > > > and log4j.properties to:
> > > > <CONTEXT>/WEB-INF/classes
> > > >
> > > > my application's log file (the one specified in log4j.properties)
> > > > is being filled up with container generated debugging (sample below).
> > > >
> > > > It doesn't seem to happen when with a clean restart of Tomcat.
> > > > The app was deployed as a war file with all the l4j files intact.
> > > >
> > > > I'm trying to reproduce in a sample app (with no luck so far) that I
> can
> > > > post.
> > > >
> > > > In the mean time, has anyone seen anything like this before?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ==========================sample========================
> > > > DEBUG: Convert string '30' to class 'int'
> > > > DEBUG:   Using converter
> > > > [EMAIL PROTECTED]
> > > > DEBUG: Registering Catalina:type=Manager,path=/appname,host=localhost
> > > > DEBUG: Force random number initialization starting
> > > > DEBUG: Opening /dev/urandom
> > > > DEBUG: Getting message digest component for algorithm MD5
> > > > DEBUG: Completed getting message digest component
> > > > DEBUG: getDigest() 1
> > > > DEBUG: Force random number initialization completed
> > > > DEBUG: Start: Loading persisted sessions
> > > > DEBUG: Loading persisted sessions from SESSIONS.ser
> > > > DEBUG: Creating custom object input stream for class loader
> > > > DEBUG: Loading 0 persisted sessions
> > > > DEBUG: Finish: Loading persisted sessions
> > > > DEBUG: Initializing the Web Service App.........
> > > > DEBUG: ContextListener. rbo_account: swdev
> > > > DEBUG: Creating ApplicationCodeLists Object
> > > > DEBUG: RBO ACCOUNT: swdev
> > > > DEBUG: *** Getting error Codes from RBO
> > > > DEBUG: 0 valid sessions open.
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to