• 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
Re: Logging not on in Deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logging not on in Deployment


  • Subject: Re: Logging not on in Deployment
  • From: Drew Thoeni <email@hidden>
  • Date: Sat, 26 Aug 2006 21:33:59 -0400


Turns out it was permissions on the folder. Thought I had checked that. Thanks (again).


Drew


On Aug 26, 2006, at 2:14 PM, Chuck Hill wrote:

Deployment means under JavaMonitor? Is this where you are expecting output?

log4j.appender.A2.file=/Library/Logs/Segment/segment.log

Does that path exist? Does the user that wotaskd is running under have permissions to write this?

Chuck


On Aug 26, 2006, at 4:58 AM, Drew Thoeni wrote:

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:
40global-village.net


This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects







_______________________________________________ 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
References: 
 >Logging not on in Deployment (From: Drew Thoeni <email@hidden>)
 >Re: Logging not on in Deployment (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Looks like...
  • Next by Date: Re: Looks like...
  • Previous by thread: Re: Logging not on in Deployment
  • Next by thread: Where is the license key bundled with WebObjects 5.3.1 or 5.3.2 Developer ?
  • Index(es):
    • Date
    • Thread