I used to turn on/off the logging for various modules (or everything) using
the commons logging.   Check that out.  I used SimpleLog and turned
everything off.  Then, I used debug or info for the modules I'm interested
in.
http://jakarta.apache/org/commons/logging

I think I turned it all off in my simplelog.properties file using:
org.apache.commons.logging.simplelog.log.org.apache.struts=none
But you could set it to "info", "debug", etc.

I setup up commons logging to use the simplelog by creating a
simplelog.properties file like so:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.defaultlog=debug
org.apache.commons.logging.simplelog.showlogname=true
org.apache.commons.logging.simplelog.showdatetime=true

Regards,
David

-----Original Message-----
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 11:32 AM
To: Struts Users Mailing List
Subject: RE: Taglibs generating lots of warning messages




> -----Original Message-----
> From: Andy Schmidgall [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 10, 2004 7:06 PM
> To: Struts Users Mailing List
> Subject: RE: Taglibs generating lots of warning messages
>
>
> Does anyone know anything about this? This is generating HUGE
> catalina.out files, and I would really like to use log4j to
> catch these
> rather than having to build and/or configure yet another app just to
> rotate this one file...

No idea... tried to figure out how to reproduce this but couldn't.  Almost
sounds like one of the struts jar files is mildly corrputed, but don't know
for sure.




>
> Thanks,
> Andy
>
> -----Original Message-----
> From: Andy Schmidgall
> Sent: Wednesday, August 04, 2004 4:57 PM
> To: Struts Users Mailing List
> Subject: Taglibs generating lots of warning messages
>
>
> Hello,
>
> In our Struts app, whenever a JSP uses taglibs, the following
> 4 messages
> are produced for each taglib referenced:
>
> ---
> ParserUtils: warning org.xml.sax.SAXParseException: missing system ID,
> using http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
> ParserUtils: warning org.xml.sax.SAXParseException: URI was
> not reported
> to parser for entity [document]
> ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope
> URI is absolute:
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope
this SYSTEM id is absolute:
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
---

Now, this wouldn't be so bad, but I can't seem to figure out how to
filter these out with log4j. I turned off all logging to stdout, but
these warnings still go to stdout. (and on to catalina.out making for a
nice large log file)

Does anyone know how to either fix what it's complaining about, or
prevent these messages from displaying? The tags seem to be working just
fine otherwise.

Thanks,
Andy

---------------------------------------------------------------------
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