RE: log files in tomcat

2001-01-31 Thread Garmaev, Vladimir A

There should be two more logs:

jvm.stderr
jvm.stdout

The latter is logging System.out.println


-Original Message-
From: Ross Manges [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: log files in tomcat


Hello folks,

I apologize in advance for this dumb question, but I'm
having an exteremly difficult time getting tomcat to
create a log file containing the event traces (and
possibly System.out.println()'s?) from my servlets. 
I've read up on the available faq's and other
documentation, which directs me to the server.xml
file.  I've set that file to maximum debugging mode,
but still no luck.  I get two files in my /log
directory: jasper.log and servlet.log.  The latter
contains nearly nothing, and jasper.log simply reports
on my jsp files.

Can somebody PLEASE point me in the right direction? 
If I've missed some important set of documentation
please let me know.

Thanks!

--Ross

p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
PIII-700, 128mb ram.

__
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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

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




Re: log files in tomcat

2001-01-31 Thread Shahed Ali

I have modified my tomcat.sh/bat file
to have
java org.apache.whatever.tomcat start 1/path/to/logs/stdout.log 21

So when you startup tomcat , the stdout and stderr go to a file.

But since you are using windows, I am not very sure about the syntax.

just a  file.log may redirect both System.out.println and
System.err.println to
the same file.

Hope this helps
Regards
Shahed.


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




RE: log files in tomcat

2001-01-31 Thread Ignacio J. Ortega

The solution it's on server.xml file it self, here it's an excerpt...

8--

!-- if you don't want messages on screen, add the attribute
path="logs/tomcat.log" 
 to the Logger element below
--
Logger name="tc_log" 
verbosityLevel = "INFORMATION" 
/
8--


So to get tomcat screen logged into a file change the Logger element for
the "tc_log" log in server.xml to this:

8--

Logger name="tc_log" 
verbosityLevel = "INFORMATION" 
path="logs/tomcat.log" /
8--


Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Ross Manges [mailto:[EMAIL PROTECTED]]
 Enviado el: mircoles 31 de enero de 2001 20:44
 Para: [EMAIL PROTECTED]
 Asunto: log files in tomcat
 
 
 Hello folks,
 
 I apologize in advance for this dumb question, but I'm
 having an exteremly difficult time getting tomcat to
 create a log file containing the event traces (and
 possibly System.out.println()'s?) from my servlets. 
 I've read up on the available faq's and other
 documentation, which directs me to the server.xml
 file.  I've set that file to maximum debugging mode,
 but still no luck.  I get two files in my /log
 directory: jasper.log and servlet.log.  The latter
 contains nearly nothing, and jasper.log simply reports
 on my jsp files.
 
 Can somebody PLEASE point me in the right direction? 
 If I've missed some important set of documentation
 please let me know.
 
 Thanks!
 
 --Ross
 
 p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
 PIII-700, 128mb ram.
 
 __
 Get personalized email addresses from Yahoo! Mail - only $35 
 a year!  http://personal.mail.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 

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




RE: log files in tomcat

2001-01-31 Thread CPC Livelink Admin


Actually, these are files that are generated by the jk_nt_service helper
application, not entries in tomcat.

If you want to capture the output of tomcat, you need to either a) redirect
the output to a file (on Unix you also need to redirect stderr, on Windows
stdout and stderr are much the same (I think)) or b) programatically change
the stream pointed to by System.out and .err to something else which you
have opened.


-Original Message-
From: Jason Pell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 8:09 PM
To: [EMAIL PROTECTED]
Subject: Re: log files in tomcat


I have also had problems with this.

As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:

- server.xml fragment
---
Logger name="jvm.stderr"
verbosityLevel = "DEBUG"
path="logs/stderr.log"
/

Logger name="jvm.stdout"
verbosityLevel = "DEBUG"
path="logs/stdout.log"
/
- server.xml fragment
---

But no joy I am afraid.  Is this the correct config info.

I am running Tomcat 3.2.1 on Redhat 6.2

Thanks
Jason

"Garmaev, Vladimir A" wrote:

 There should be two more logs:

 jvm.stderr
 jvm.stdout

 The latter is logging System.out.println

 -Original Message-
 From: Ross Manges [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 31, 2001 1:44 PM
 To: [EMAIL PROTECTED]
 Subject: log files in tomcat

 Hello folks,

 I apologize in advance for this dumb question, but I'm
 having an exteremly difficult time getting tomcat to
 create a log file containing the event traces (and
 possibly System.out.println()'s?) from my servlets.
 I've read up on the available faq's and other
 documentation, which directs me to the server.xml
 file.  I've set that file to maximum debugging mode,
 but still no luck.  I get two files in my /log
 directory: jasper.log and servlet.log.  The latter
 contains nearly nothing, and jasper.log simply reports
 on my jsp files.

 Can somebody PLEASE point me in the right direction?
 If I've missed some important set of documentation
 please let me know.

 Thanks!

 --Ross

 p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
 PIII-700, 128mb ram.

 __
 Get personalized email addresses from Yahoo! Mail - only $35
 a year!  http://personal.mail.yahoo.com/

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

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

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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



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




Re: log files in tomcat

2001-01-31 Thread Jason Pell

Perhaps we should take this as a suggested improvement to tomcat:

If they are present, then redirect System.out and System.err to these logfiles.

"Garmaev, Vladimir A" wrote:

 There should be two more logs:

 jvm.stderr
 jvm.stdout

 The latter is logging System.out.println


CPC Livelink Admin wrote:

 Actually, these are files that are generated by the jk_nt_service helper
 application, not entries in tomcat.

 If you want to capture the output of tomcat, you need to either a) redirect
 the output to a file (on Unix you also need to redirect stderr, on Windows
 stdout and stderr are much the same (I think)) or b) programatically change
 the stream pointed to by System.out and .err to something else which you
 have opened.

 -Original Message-
 From: Jason Pell [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 31, 2001 8:09 PM
 To: [EMAIL PROTECTED]
 Subject: Re: log files in tomcat

 I have also had problems with this.

 As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:

 - server.xml fragment
 ---
 Logger name="jvm.stderr"
 verbosityLevel = "DEBUG"
 path="logs/stderr.log"
 /

 Logger name="jvm.stdout"
 verbosityLevel = "DEBUG"
 path="logs/stdout.log"
 /
 - server.xml fragment
 ---

 But no joy I am afraid.  Is this the correct config info.

 I am running Tomcat 3.2.1 on Redhat 6.2

 Thanks
 Jason

 "Garmaev, Vladimir A" wrote:

  There should be two more logs:
 
  jvm.stderr
  jvm.stdout
 
  The latter is logging System.out.println
 
  -Original Message-
  From: Ross Manges [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 31, 2001 1:44 PM
  To: [EMAIL PROTECTED]
  Subject: log files in tomcat
 
  Hello folks,
 
  I apologize in advance for this dumb question, but I'm
  having an exteremly difficult time getting tomcat to
  create a log file containing the event traces (and
  possibly System.out.println()'s?) from my servlets.
  I've read up on the available faq's and other
  documentation, which directs me to the server.xml
  file.  I've set that file to maximum debugging mode,
  but still no luck.  I get two files in my /log
  directory: jasper.log and servlet.log.  The latter
  contains nearly nothing, and jasper.log simply reports
  on my jsp files.
 
  Can somebody PLEASE point me in the right direction?
  If I've missed some important set of documentation
  please let me know.
 
  Thanks!
 
  --Ross
 
  p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
  PIII-700, 128mb ram.
 
  __
  Get personalized email addresses from Yahoo! Mail - only $35
  a year!  http://personal.mail.yahoo.com/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

 --
 Jason Pell
 Senior Analyst/Programmer - Web Developer
 Deakin Software Services Pty Ltd
 12 Gheringhap St, Geelong Victoria 3220 Australia
 Phone: 03 5227 8858 International: +61 3 5227 8858
 Fax: 03 5227 8907 International: +61 3 5227 8907
 E-mail [EMAIL PROTECTED]
 http://www.dssonline.com.au
 Customer Support Hotline: 1800 620 497

 "Callista - the brightest solution in university management"

 ---
 Important Notice: The contents of this email transmission,
 including attachments, may be privileged and confidential.
 Any unauthorised use of the contents is expressly prohibited.
 If you have received this transmission in error, please advise
 the sender by return email or telephone immediately and
 destroy all versions.
 ---

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

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

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmiss