Im using Apache Tomcat 7. When I'm running Tomcat with security manager and with the -Djava.security.debug
parameter I'm getting so much of text in console. I can't read the text in console. So I need the console log into some file. How can I achieve this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
for ubuntu user, use following command:
you will get the logs. Once you run this command you will get all the log files under /opt/apache-tomcat-8.0.36/logs folder..
Remove
ConsoleHandler
from logging configuration. Inconf/logging.properties
:Change this -
To this -
The logs will be in the file
catalina.log
.If you want to disable console logging for selected applications, you can set
swallowOutput
in true in the<Context>
element.Using
catalina.bat
run can start the tomcat in the current console instead of a new console , so you can redirect all the standard error and standard output stream of this command to a file using