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 at the
Simon Kelly rta:
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.
Hi Simon,
there is a lot of info on that question in O'Reilly Programming Jakarta
Struts. The tell you how to use Commons Logging or
Log4J within your struts apps.
And: whatever you print to stdout or stderr appears in your tomcat window
anyway (at least it should)
Greetz from Karlsruhe too,
-
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
If you can't see your standard output try looking in the
$CATALINA_HOME/logs directory and look for a file called catalina.out.
I used a linux rpm installation of tomcat and all stdout goes there when
tomcat is started up.
Filip Polsakiewicz wrote:
Hi Simon,
there is a lot of info on that
: 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
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
Struts 1.1 uses Commons-logging as logs wrapper.
You can use the logging library you want (log4J, JDK 1.4, ...).
See the documentation of commons-logging for more explanations.
http://jakarta.apache.org/commons/logging.html
and
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
Standard output should be in stdout.log, in $CATALINA_HOME/logs...
The logs with the dates are when the commons logging interface is used,
methinks.
Tal
- Original Message -
From: Geoff Seel [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 25,
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
The commons-logging package is an ultra-lightweight interface to ...
whichever logging package is available:
- jdk1.4? use that unless otherwise stated
- log4j? use that unless otherwise stated
- something else? use that unless otherwise stated (see site for
the ones it will look
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
Here is a suggestion!
Download chapter 21 of JSP PRO second edition from www.wrox.com
It shows a complete struts application for a Shopping cart.
It has login form, logout form etc.
- Original Message -
From: Mark Silva [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
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
://www.chikli.com
-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
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
I highly suspicion this character is, in fact, a bot. He got lucky on a
soundex match that came close to approximating the topic of interest.
That's what I discount it to - nothing more. If I'm incorrect, I
apologize in advance. It will take some serious convincing to make me
believe he
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
He got kicked off the JSP-Interest list yesterday or today
At 02:10 PM 9/23/2002 -0500, you wrote:
I highly suspicion this character is, in fact, a bot. He got lucky on a
soundex match that came close to approximating the topic of interest.
That's what I discount it to - nothing
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, and the
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
You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern org.apache.struts.webapp.example.
Check your Log4J configuration to see what debug level would be assgned to
package.
Craig
On Thu, 29 Aug 2002,
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
41 matches
Mail list logo