• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Logging not on in Deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Logging not on in Deployment


  • Subject: Logging not on in Deployment
  • From: Drew Thoeni <email@hidden>
  • Date: Sat, 26 Aug 2006 07:58:39 -0400

I have log4j set to log and all works well on the development machine. I have WODirectConnectEnabled=false
 on the development machine. When I deploy no logging appears.

Any suggestions pointing me in the right direction would be appreciated.

Thanks

Drew

This is in the Application constructor:

// Configure log4j
PropertyConfigurator.configure("/Library/Preferences/log4j_cheetah.properties");
log = Logger.getLogger( Application.class );
log.info("Log4j has been initialized");



Here is the configuration file:

# Log4j configuration file.

# Available levels are DEBUG, INFO, WARN, ERROR, FATAL
log4j.rootCategory=WARN, A2
#log4j.rootCategory=DEBUG, A1, A2, A3


#

# A1 is a ConsoleAppender
#log4j.appender.A1=org.apache.log4j.ConsoleAppender
#log4j.appender.A1.layout=org.apache.log4j.PatternLayout
#log4j.appender.A1.layout.ConversionPattern=%-5p [%t] - %m%n

#

# A2 is a DailyRollingFileAppender
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=/Library/Logs/Segment/segment.log
log4j.appender.A2.datePattern='.'yyyy-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n

#

# A3 is a UDPAppender for sending logs as broadcast UDP packets
#log4j.appender.A3=org.apache.log4j.net.UDPAppender
#log4j.appender.A3.remoteHost=192.168.15.255
#log4j.appender.A3.port=8881
#log4j.appender.A3.layout=org.apache.log4j.PatternLayout
#log4j.appender.A3.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Logging not on in Deployment
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Session Strangeness on 2nd Login
  • Next by Date: Re: Looks like ThinkSecret got some of the scoop on WO from WWDC'06
  • Previous by thread: Re: Session Strangeness on 2nd Login
  • Next by thread: Re: Logging not on in Deployment
  • Index(es):
    • Date
    • Thread