Quantcast
Channel: How to redirect tomcat console log to files? Tomcat started via windows bat - Server Fault
Viewing all articles
Browse latest Browse all 7

How to redirect tomcat console log to files? Tomcat started via windows bat

$
0
0

When Tomcat is started as service it puts its output log in:

\logs\stderr.log  \logs\stdout.log 

How to write this log files when Tomcat started as BAT in windows?

P.S.: I tried to start Tomcat with:

call startup > ../logs/consolelog.log 2<&1

But output of consolelog.log has only 5 lines

Using CATALINA_BASE:   "C:\Java\Tomcat 5.0"Using CATALINA_HOME:   "C:\Java\Tomcat 5.0"Using CATALINA_TMPDIR: "C:\Java\Tomcat 5.0\temp"Using JRE_HOME:        "C:\Program Files\Java\jdk1.5.0_22"Using CLASSPATH:       "C:\Java\Tomcat 5.0\bin\bootstrap.jar"

and lot of output in console


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images