logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msg2ajay <msg2a...@gmail.com>
Subject where can i see the log.Debug("somemessage") ???? message
Date Wed, 14 Nov 2007 08:22:41 GMT

hi friends,
               I am new to log4j . i have written

- log4j.properties (file in /src/log4j.properties)
- my .java class is as below
import org.apache.commons.logging.*;
public class RegisterAction  extends Action{
private static Log log = LogFactory.getLog("login.action.RegisterAction");
             public ActionForward execute(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse respoonse) 
	RegisterForm RForm = (RegisterForm)form;
	log.debug("THIS IS A LOG EXAMPLE #############>>>>>>");               

- my doubt is do i need to configure in sturts-config.xml or web.xml about
the log4j.properties.
- I have am not getting the log.debug(''...."); statement in my console....

can any bady show me some way.


View this message in context: http://www.nabble.com/where-can-i-see-the-log.Debug%28%22somemessage%22%29------message-tf4803416.html#a13742321
Sent from the Log4j - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message