Hi,
I am using tomcat to run jsp file,
my question is how can force my server to create log file ?
I'm new into tomcat, so please be gentle.
Thanks
You can use the JAVA_OPTS environment variable.
It is similar to enabling gc logging for a normal JVM just pass the same options in JAVA_OPTS and restart tomcat.
example on Linux:-
export JAVA_OPTS=-verbose:gc -Xloggc:logfile
the above should work, but remember the 'logfile' will be cleared at every JVM restart.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.