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
On 1/30/2013 2:01 PM, Edson Richter wrote:
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
From: Edson Richter [mailto:edsonrich...@hotmail.com]
Subject: Cannot apply simpleformtatter pattern to catalina.sh
I'm trying to put the following in catalina.sh:
Don't do that. Create a setenv.sh script and put the lines there.
Looks like you found the lack of escaping.
- Chuck
THIS
Thanks, already solved!
You are right, the double quotes are mandatory. But in this case, to
avoid variable expansion (in bash), need also to escape the dolar signs.
And finally, the format need to be surrounded by single quotes.
What did I accomplish? The end of double log lines in log file