java - Why application (sysout/syserr) logs getting redirected to catalina.out do not have timestamps? -
tomcat version : 8.0.54 logger: tomcats internal logger juli
tomcat generated logs have timestamp, whereas application logs(sysout/syserr) getting redirected catalina.out not have timestamps.
please suggest me how add timestamp application logs(sysout/syserr) getting redirected catalina.out?
thanks!
if need proper timestamps (and maybe logging levels) you'll either need use proper logger, or add them system.out.println()
statements yourself.
note, system.out
not meant used logging. in fact, 2 threads write sysout @ same time might interleave output. character character - , more when construct output in various steps (e.g. using print
no ln
)
Comments
Post a Comment