struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kishor Patil" <kishor.pa...@patni.com>
Subject RE: Debug ON/OFF
Date Mon, 01 Mar 2004 09:52:14 GMT
Hi Shashank,
	If you have not configured the Struts Logging mechnism i.e. log4j /
jdk1.4 is not in the classpath. Then the Struts makes use of the SimpleLog. 

Simple implementation of Log that sends all enabled log messages, for all
defined loggers, to System.err. The following system properties are
supported to configure the behavior of this logger:

org.apache.commons.logging.simplelog.defaultlog - Default logging detail
level for all instances of SimpleLog. Must be one of ("trace", "debug",
"info", "warn", "error", or "fatal"). If not specified, defaults to "info". 

org.apache.commons.logging.simplelog.log.xxxxx - Logging detail level for a
SimpleLog instance named "xxxxx". Must be one of ("trace", "debug", "info",
"warn", "error", or "fatal"). If not specified, the default logging detail
level is used. 

org.apache.commons.logging.simplelog.showlogname - Set to true if you want
the Log instance name to be included in output messages. Defaults to false. 

org.apache.commons.logging.simplelog.showShortLogname - Set to true if you
want the last componet of the name to be included in output messages.
Defaults to true. 

org.apache.commons.logging.simplelog.showdatetime - Set to true if you want
the current date and time to be included in output messages. Default is
false. 


I think this will help you out. Set the system properties as mentioned above

kishor


-----Original Message-----
From: Dixit, Shashank (Cognizant) [mailto:DShashan@pun.cognizant.com]
Sent: Monday, March 01, 2004 2:39 PM
To: Struts Users Mailing List; kishor.patil@patni.com
Subject: RE: Debug ON/OFF


I am not using logging yet. Struts is using I think Log4j. Which is in
commonsLogging.jar. 
If I want to make debug statements of struts programms on or off what should
I do?

Shashank S. Dixit 
Cognizant Technology Solutions Pvt. Ltd. 
Hinjewadi,
Pune
Mobile : 98904 25400 

An Obstacle is something you see when you take your eyes off the goal.



-----Original Message-----
From: kishor Patil [mailto:kishor.patil@patni.com] 
Sent: Monday, 1 March 2004 7:12 PM
To: 'Struts Users Mailing List'
Subject: RE: Debug ON/OFF


Hi Shashank,
	First check out which logging tools you are using. By default the
commomns-logging uses hte Simple-Logging. 
	If you are using the log4j for logging purpose, then check out the
log4j.properties file. If there is no properties then add one overridding
the default setting.

thanks and regards
kishor

-----Original Message-----
From: Dixit, Shashank (Cognizant) [mailto:DShashan@pun.cognizant.com]
Sent: Monday, March 01, 2004 1:27 PM
To: struts-user@jakarta.apache.org
Subject: Debug ON/OFF


Hi All

Anybody knows how to make debug on/off to make on/off struts-logging
messages. 
I couldn't see any xml file for struts logging,
Pls tell me how to make debug ON or OFF.

Shashank S. Dixit 
Cognizant Technology Solutions Pvt. Ltd. 
Hinjewadi,
Pune
Mobile : 98904 25400 

An Obstacle is something you see when you take your eyes off the goal.





Mime
View raw message