Ops!
Found it:
JAVA_OPTS="-Djava.awt.headless=true
-Djava.util.logging.SimpleFormatter.format='[%1\$tY-%1\$tm-%1\$td
%1\$tH:%1\$tM:%1\$tS.%1\$tL] %4\$s: %5\$s %6\$s %n' "
a) In bash, using double quotes make necessary to escape the dolar sign
b) for SimpleFormatter.format works, the formatting experssion needs to
be inside single quotes.
Regards,
Edson
Em 30/01/2013 20:01, Edson Richter escreveu:
I'm trying to put the following in catalina.sh:
JAVA_OPTS=-Djava.awt.headless=true
-Djava.util.logging.SimpleFormatter.format=[%1$tY-%1$tm-%1$td
%1$tH:%1$tM:%1$tS.%1$tL] %4$s: %5$s %6$s %n
also tried:
JAVA_OPTS="-Djava.awt.headless=true
-Djava.util.logging.SimpleFormatter.format=[%1$tY-%1$tm-%1$td
%1$tH:%1$tM:%1$tS.%1$tL] %4$s: %5$s %6$s %n"
Both causes errors (linux platform) like
"/etc/init.d/catalina: line 64:
-Djava.util.logging.SimpleFormatter.format=[%1-%1-%1: command not found"
or
"Error: Could not find or load main class %1:%1:%1.%1]"
I'll appreciate your help.
Edson Richter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org