Hello,
I use Struts 1.1 and Tomcat 4.1.24 and i cannot use correctly the
logging functionnality of Struts. More exactly i don't know which
settings i must set and in which file.
It is said in the doc that Struts use the logging facilities of the
underlying logging implementation
I use Struts 1.1 and Tomcat 4.1.24 and i cannot use correctly the
logging functionnality of Struts. More exactly i don't know which
settings i must set and in which file.
What underlying logging implementation do you want to use? If you do
nothing, you get Commons logging. Look
I use commons logging in my struts app. I am given to understand the Struts Framework
itself uses Commons logging for its internal logging.
Because of this my app log file has lots of struts log messages - like how it reads
web.xml and such. Is there any way to tell struts not to log in my log
to add other similar lines to filter other
packages that struts depends on.
Steve
-Original Message-
From: Swaminathan Gurumoorthy [mailto:[EMAIL PROTECTED]
Sent: June 27, 2003 3:18 PM
To: [EMAIL PROTECTED]
Subject: using Commons logging for struts
I use commons logging in my struts
Users Mailing List
Subject: RE: using Commons logging for struts
You should be able to configure the underlying logging mechanism
to not log
struts messages.
For example, if you are using log4j you could add a line like
log4j.logger.org.apache.struts=ERROR
to your log4j.properties file
Hi all,
I didn't really want to post such a basic question, but I have tried a
couple of possible solutions and have had zero luck. So,
How do you log messages using the Struts logger, so that they will print to
screen? I.E the window that tomcat is running in, in my case.
Thanks, cheers etc
.
They are not log messages usually but System.out/System.err println()
calls. However if you configure
your logging framework to log to console, the result is the same.
The struts is logging via commons-logging. Check commons-logging and
log4j docs.
Hth,
Tib
,
Filip
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:24 AM
To: Struts Users Mailing List
Subject: Logging in struts.
Hi all,
I didn't really want to post such a basic question, but I have tried a
couple of possible solutions
-
From: Filip Polsakiewicz [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:50 AM
Subject: RE: Logging in struts.
Hi Simon,
there is a lot of info on that question in O'Reilly Programming Jakarta
Struts. The tell you how to use Commons
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:02 AM
To: Struts Users Mailing List
Subject: Re: Logging in struts.
Hi Gemes and Filip,
Thanks for the answers. I'm using commons logging (and I'm just
checkin my
copy of Prog
Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:24 AM
To: Struts Users Mailing List
Subject: Logging in struts.
Hi all,
I didn't really want to post such a basic question, but I have tried a
couple of possible solutions and have had zero luck. So,
How do you log messages using
: Logging in struts.
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:02 AM
To: Struts Users Mailing List
Subject: Re: Logging in struts.
Hi Gemes and Filip,
Thanks for the answers. I'm using commons logging (and I'm just
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:36 AM
To: Struts Users Mailing List
Subject: Re: Logging in struts.
Thanks Filip (and hi Kwok, yep found the file. See below)
I tested the servlet context logging, and found
Hmm very strange since it doesn't log properly.
Looks a bit different then how it's done in the struts examples.
I see that they do this,
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
..
..
public final class EditSubscriptionAction extends Action {
Done that.
It's my usual option for loggin in struts. But even that seems to have
failed me :-(
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.
Hmm very
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.
Hmm very strange since it doesn't log properly.
Looks a bit different then how it's done in the struts examples.
I see that they do this,
import
! Please excuse the noise.
SimBANG
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:09 PM
Subject: Re: Logging in struts.
sounds like your logging configuration file doesn't contain what you
to be rather silly.
Reviewing the following links for information on configuring logging...
http://jakarta.apache.org/struts/userGuide/configuration.html#config_logging
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/pac
kage-summary.html#package_description
http
to be rather silly.
This was simply an oversight. I'll deprecate the method and the internal
variable.
Reviewing the following links for information on configuring logging...
http://jakarta.apache.org/struts/userGuide/configuration.html#config_logging
http://jakarta.apache.org/commons/logging/api
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:09 PM
Subject: Re: Logging in struts.
sounds like your logging configuration file doesn't contain what you
think it does or is not being found at start-up.
Simon Kelly wrote:
Done that.
It's my
Hi fellow programmers
is there a way to shut up Struts internal console logging?
im using log4j for my own logging system and struts keeps printing his
internal operations in the console.
thanks
_
Help STOP SPAM with the new MSN 8
PROTECTED]
Subject: Question : Turning off logging for Struts in Tomcat
Date: Thu, 20 Mar 2003 20:18:50 +
Hi fellow programmers
is there a way to shut up Struts internal console logging?
im using log4j for my own logging system and struts keeps printing his
internal operations in the console
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 3:19 PM
To: [EMAIL PROTECTED]
Subject: Question : Turning off logging for Struts in Tomcat
Hi fellow programmers
is there a way to shut up Struts internal console logging?
im using log4j for my own logging system and struts keeps
Pretty sure you wanna add:
log4j.additivity.org.apache.struts.tiles=false
Hope that's the right properties file syntax, I usually use XML...
Quoting Eddie Bush [EMAIL PROTECTED]:
You really should be able to get such examples off the components'
respective sites, but, seeing as how folks
Actually, with a single appender, it really shouldn't matter. If he
winds up adding additional appenders, then, yes, he may want to do that.
The problem solved by that, unless I'm mistaken, is that output shows
up on multiple appenders. Hence, with only a single appender, it really
isn't
Nope, you're right, good call. I've just gotten into the habbit of doing that
regardless of the number of appenders I've got.
Quoting Eddie Bush [EMAIL PROTECTED]:
Actually, with a single appender, it really shouldn't matter. If he
winds up adding additional appenders, then, yes, he may want
read that struts uses commons-logging,
and commons-logging will default to using the java 1.4 logging
mechanism in my case. And, from the messages it is giving, it appears
to be doing that. I'm seeing INFO, WARNING, and SEVERE notes.. (the
SEVERE doesn't appear in commons-logging, but does in jdk1.4
Hi all,
I am trying to put some logging into my web-app, and was wondering if it was
possible to add a logger to the struts LogManager? But if not, would
creating my own LogManager interfer with the struts manager?
Cheers
Simon
PS
Does anyone know of a decent tutorial on logging?
Institut
/logging/pac
kage-summary.html
Arnaud
-Message d'origine-
De : Simon Kelly [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 29 janvier 2003 12:12
À : Struts Users Mailing List
Objet : logging within struts.
Hi all,
I am trying to put some logging into my web-app, and was
wondering
Thanks. I'll give it a go.
Simon
- Original Message -
From: Arnaud HERITIER [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 1:59 PM
Subject: RE: logging within struts.
Struts 1.1 uses Commons-logging as logs wrapper.
You can use
]]
Sent: December 28, 2002 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem Using Log4J and Commons Logging with Struts
Eddie Bush wrote:
Add two files to your WEB-INF/classes directory:
[...]
That should fix things, I believe. The commons-logging package
is going to expect that you want
Phillip Qin wrote:
If I only use log4j, jar has to be placed in my app's WEB-INF/lib. Don't
know why it is in a different directory if commons-logging and log4j work
together.
Just because two libraries use each other's classes doesn't mean
their classes (or jars) need to be in the same
: Problem Using Log4J and Commons Logging with Struts
Phillip Qin wrote:
If I only use log4j, jar has to be placed in my app's WEB-INF/lib. Don't
know why it is in a different directory if commons-logging and log4j work
together.
Just because two libraries use each other's classes doesn't
: Problem Using Log4J and Commons Logging with Struts
Add two files to your WEB-INF/classes directory:
commons-logging.properties ==
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Lo
g4jFactory
log4j.properties
application and
Struts successfully logging to the simple log.
When I just drop log4j-1.2.7.jar into WEB-INF/lib,
regardless of whether I configure Commons Logging to use
the Log4JCategoryLog or not, I get this exception:
I've added this to my CATALINAOPTS:
-Dorg.apache.commons.logging.Log
Eddie Bush wrote:
Add two files to your WEB-INF/classes directory:
[...]
That should fix things, I believe. The commons-logging package
is going to expect that you want to use Log4J if you have the
Log4J JAR in the classpath (ie your WEB-INF/lib directory).
It's not going to work correctly
It is a bug in JRUN4.0 where you have to place log4j jar file in servers/lib
directory
-D
- Original Message -
From: Paul Hodgetts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 28, 2002 9:10 AM
Subject: Re: Problem Using Log4J and Commons Logging with Struts
Eddie
Using the latest nightly build from 2002-12-27, the latest
Commons Logging nightly build from 2002-12-27, and Log4J
1.2.7...
I have Common Logging configured to use the SimpleLog, and
everything is working fine, with both my application and
Struts successfully logging to the simple log.
When I
Hodgetts, Agile Logic wrote:
Using the latest nightly build from 2002-12-27, the latest
Commons Logging nightly build from 2002-12-27, and Log4J
1.2.7...
I have Common Logging configured to use the SimpleLog, and
everything is working fine, with both my application and
Struts successfully logging
Hi
Does anyone know how to enable debug level logging for the struts framework?
i.e. log.isDebugEnabled() returns true
Thanks
John Prout
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Which logging implementation, if any, are you using with
commons-logging? Or are you just using commons-logging alone?
John Prout wrote:
Hi
Does anyone know how to enable debug level logging for the struts framework?
i.e. log.isDebugEnabled() returns true
Thanks
John Prout
--
Eddie Bush
I'm using the default struts install - just commons-logging alone I think
-Original Message-
From: Eddie Bush [mailto:ekbush;swbell.net]
Sent: Friday, November 01, 2002 11:52 AM
To: Struts Users Mailing List
Subject: Re: How do I enable debug logging for struts
Which logging
, November 01, 2002 11:52 AM
To: Struts Users Mailing List
Subject: Re: How do I enable debug logging for struts
Which logging implementation, if any, are you using with
commons-logging? Or are you just using commons-logging alone?
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:struts-user
Ignore the pipes - I don't know how they got in there. Copy/paste error
I'd say. Don't include the | chars in your properties file.
org.apache.commons.logging.simplelog.defaultlog=debug
org.apache.commons.logging.simplelog.log.org.apache.struts=debug
Those pipes weren't in the message that I
Folks
Know I can't expect people on mailing lists to solve all my problems but
I was surprised that nobody could help with logging issue below. Has
anyone used Struts successfully with the Sun J2EE Reference
Implementation (1.3.1)? Does anyone know where the logs should be?
Thanks.
In message
, 2002 11:19 AM
Subject: Logging with Struts on RI: was Redirected to index.jsp unexpectedly
Folks
Know I can't expect people on mailing lists to solve all my problems but
I was surprised that nobody could help with logging issue below. Has
anyone used Struts successfully with the Sun J2EE
Assuming it follows what Tomcat lays out, you could find them in
$TOMCAT_HOME/log -- er ... whatever your top-level directory is :-)
Sorry, I use Tomcat. I can't speak to the Sun RI ... sure thought
Tomcat was the RI.
Geoff Seel wrote:
Folks
Know I can't expect people on mailing lists to
On Wednesday 25 September 2002 04:19 am, Geoff Seel wrote:
Folks
Know I can't expect people on mailing lists to solve all my problems
but I was surprised that nobody could help with logging issue below.
Has anyone used Struts successfully with the Sun J2EE Reference
Implementation (1.3.1)?
Thanks Eddie and other guys.
Set up a stand-alone Tomcat and everything works, not only logging but
the Struts app itself (till it tries to access an EJB!). Exactly the
same war file fails in RI, Maybe it's because I was trying to deploy via
the deploytool, tomorrow I'll see if I can deploy
hey there,
i was wondering what people ar eusing for logging in struts. it seems that with
jdk1.4, and the included logging, that would be the right framework. has anybody had
readon to use something else, like the jakarta package, or log4j?
also i had a question about the configuration
for)
- nothing? Fine - use the simple console logger
By using commons-logging, you alleviate the need to refactor just
because you want to use a different logging mechanism. If you want to
use JDK1.4 logger, you can -- if not, you can use something else.
Struts includes commons-logging
We wrote our own BS (before struts) custom logger. I'll send you a copy of
the .java file, if you are interested.
Mark
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:08 PM
To: Struts Users Mailing List
Subject: logging in struts
hey
]
Sent: Monday, September 23, 2002 6:08 PM
Subject: logging in struts
hey there,
i was wondering what people ar eusing for logging in struts. it seems that
with jdk1.4, and the included logging, that would be the right framework.
has anybody had readon to use something else, like the jakarta
Disregard this garbage. I don't know who this guy is or what in the
world he thinks he's doing, but many here have filtered him out. Don't
be led astray by his unintelligible jibberish.
Zahid Rahman wrote:
Here is a suggestion!
Download chapter 21 of JSP PRO second edition from
What is garbage about what I wrote ?
A complete struts application can be found in chapter 21
of jsp pro second edition.
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 7:40 PM
Subject: Re: logging
Agreed that some previous posts have been pretty sketchy, but it seems to me that in
this case he may have just misunderstood the question logging in struts to mean
logging in IN struts... in which case his suggestion is probably valid.
---
- Nayan Hajratwala
- Chikli Consulting LLC
- http
www.landsend.com
Lands' End, Inc. (608) 935-4526
-Original Message-
From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:44 PM
To: Struts Users Mailing List
Subject: Re: logging in struts
What is garbage
,
they don't seem to like buying books.
Zahid
- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 7:48 PM
Subject: RE: logging in struts
I checked and there is an example app in the 21st chapter
isn't though ...
Hajratwala, Nayan (N.) wrote:
Agreed that some previous posts have been pretty sketchy, but it seems to me that in
this case he may have just misunderstood the question logging in struts to mean
logging in IN struts... in which case his suggestion is probably valid.
---
- Nayan
And it's not even Friday yet!
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:10 PM
To: Struts Users Mailing List
Subject: Re: logging in struts
I highly suspicion this character is, in fact, a bot. He got
lucky on a
soundex match
logging
in struts to mean logging in IN struts... in which case his suggestion
is probably valid.
---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
I highly suspicion this character is, in fact, a bot.
...and it is eternal Friday on the Struts User list.
Kick the bot off the list.
-TPP
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
to write your own.
-
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 8:10 PM
Subject: Re: logging in struts
I highly suspicion this character is, in fact, a bot. He got lucky on a
soundex match
+1
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:41 PM
To: Struts Users Mailing List
Subject: Re: logging in struts
Disregard this garbage. I don't know who this guy is or what in the
world he thinks he's doing, but many here have
When you are dealing with this lunatic, everyday is Friday. :-(
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 3:13 PM
To: Struts Users Mailing List
Subject: RE: logging in struts
And it's not even Friday yet!
-Original
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 10:08 AM
To: Struts Users Mailing List
Subject: logging in struts
hey there,
i was wondering what people ar eusing for logging in struts.
it seems that with jdk1.4
PROTECTED]]
Sent: Monday, September 23, 2002 1:05 PM
To: 'Struts Users Mailing List'
Subject: RE: logging in struts
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 10:08 AM
To: Struts Users Mailing List
Subject: logging in struts
hey
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:09 PM
To: Struts Users Mailing List
Subject: RE: logging in struts
martin,
where do you place the configuration property file for jdk
1.4? the defaulkt is in a directory
I have managed to get the Log4j package logging to a log file, when Jetty
starts, for the struts-example application. I expected to see the log
messages from the log.info() entries in the MemoryDatabasePlugin class but
they do not show up in the log files. Are there additional configurations to
, NP-KARRYS MIKE wrote:
Date: Thu, 29 Aug 2002 12:17:12 -0400
From: NP-KARRYS MIKE [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Logging in struts-example
I have managed to get the Log4j package logging to a log file, when Jetty
starts
Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:59 PM
To: Struts Users Mailing List
Subject: Re: Logging in struts-example
You can configure the logging detail level for each named package
separately -- the example webapp's components would all
On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:
Date: Thu, 29 Aug 2002 15:42:25 -0400
From: NP-KARRYS MIKE [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Logging in struts-example
Craig
Thanks for the reply:
I have figured out
this is happening.
Thanks for the help.
Mike Karrys
PRC Public Sector Inc.
-Original Message-
From: NP-KARRYS MIKE
Sent: Thursday, August 29, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Logging in struts-example
Craig
Thanks for the reply:
I have figured out that I can see
Subject: Re: JDK 1.4 Logging with Struts
From: Vic C [EMAIL PROTECTED]
===
If you are not loging a lot log options are ok.
If you are loging a lot, you need to use multi trhreaded collectoins,
roll your own.
Vic
Mike Dewhirst wrote:
We use Tomcat 4.0.3 / Struts 1.0.2 and Log4J. Before we
Has anyone implemented JDK 1.4's Logging features with Struts? We used
Log4J, but since 1.4 has Logging incorporated, we are investigating this
option, any suggestions? The examples on Sun's web site aren't too helpful
because it doesn't give you examples of configuration files. Also, how can
-
From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2002 14:40
To: 'Struts Users Mailing List'
Subject: JDK 1.4 Logging with Struts
Has anyone implemented JDK 1.4's Logging features with Struts? We used
Log4J, but since 1.4 has Logging incorporated, we are
investigating
: JDK 1.4 Logging with Struts
Has anyone implemented JDK 1.4's Logging features with Struts? We used
Log4J, but since 1.4 has Logging incorporated, we are investigating this
option, any suggestions? The examples on Sun's web site aren't too helpful
because it doesn't give you examples
Users Mailing List'
Subject: JDK 1.4 Logging with Struts
Has anyone implemented JDK 1.4's Logging features with Struts? We used
Log4J, but since 1.4 has Logging incorporated, we are investigating this
option, any suggestions? The examples on Sun's web site aren't too helpful
because it doesn't give you
2002 14:40
To: 'Struts Users Mailing List'
Subject: JDK 1.4 Logging with Struts
Has anyone implemented JDK 1.4's Logging features with Struts? We used
Log4J, but since 1.4 has Logging incorporated, we are investigating this
option, any suggestions? The examples on Sun's web site aren't too
79 matches
Mail list logo