How to redirect console output to a log file?
Linux
Edit /bin/run.sh ... # Execute the JVM "$JAVA" $JAVA_OPTS \ -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \ -classpath "$JBOSS_CLASSPATH" \ org.jboss.Main "$@" 2>&1 > console.log
Windows
Edit /bin/run.bat ... :RESTART "%JAVA%" %JAVA_OPTS% "-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS%" -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %* 2>&1 > console.log
References:
http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigureLogging
Comments