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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -