RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav

Hi,
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Scott Pippin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:45 PM
To: [EMAIL PROTECTED]
Subject: redirect catalina.out

I am trying to redirect catalina.out to an application specific log
file.  I thought I had it set up but it is still writing to
catalina.out.

server.xml

Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources
  Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true swallowOutput=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
  connectionURL=jdbc:mysql://x.x.x.x:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
  userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true swallowOutput=true /
  /Host
/Engine
  /Service
/Server


context.xml

?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true debug=4 swallowOutput=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context

Thanks in advance,

Scott Pippin
[EMAIL PROTECTED]



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: redirect catalina.out

2004-11-18 Thread Shankar Unni
Shapira, Yoav wrote:
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.
Really? That's not what the doc says (or the source either). Just tested 
on 5.0.2x. (At least, I defined a

  DefaultContext swallowOutput=true/
in my Host, and standard output went to the log file configured for 
the webapps).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav


Hi,
Yup, my mistake, thank you for pointing that out.  (Although please
don't use DefaultContext as an example of anything, it's an
abomination).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni
Sent: Thursday, November 18, 2004 3:23 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect catalina.out

Shapira, Yoav wrote:

 swallowOutput is not a Context attribute, it's a Logger attribute:
 change your context.xml to fix that.

Really? That's not what the doc says (or the source either). Just
tested
on 5.0.2x. (At least, I defined a

   DefaultContext swallowOutput=true/

in my Host, and standard output went to the log file configured for
the webapps).


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]