0

I just wanted to know that if I want to replace:

"$CATALINA_OUT" 2>&1 &

to rotate logs on daily bases what should I replace it with. I understand that for:

"$CATALINA_BASE"/logs/catalina.out 2>&1 &

we should replace it with this line

2>&1 |/usr/bin/cronolog "$CATALINA_BASE/logs/catalina-%Y-%m-%d.out" &

But in later versions of Tomcat the line look like:

"$CATALINA_OUT" 2>&1 &.

Thanks in advance.

Roham Rafii
  • 2,929
  • 7
  • 35
  • 49
dev1
  • 1
  • 3

1 Answers1

0

Don't ever do that, Tomcat is handling the logs itself. If you really want to change anything, read Tomcat doc.

Eugène Adell
  • 3,089
  • 2
  • 18
  • 34