Results 1 to 2 of 2

Thread: Timestamp in Default Logging to Catalina.out

Hybrid View

  1. #1
    Join Date
    Jul 2010
    Posts
    10

    Default Timestamp in Default Logging to Catalina.out

    Hi Everyone,

    Is there anyway to enable Timestamps for each log messages in the catalina.out using the Default TCServer logging.properties ?\

    Thanks

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    No, there isn't. catalina.out is simply capturing everything that's written to sysout and syserr. This is achieved by a simple redirect of those two streams when the JVM's launched in the catalina.sh bash script.

    You can, of course, ensure that any messages written by your application have the desired timestamps by using an appropriately configured logging framework. If you configure the logging framework to write to the console, the message will be redirected into catalina.out. Alternatively, you could configure the logging framework to write to a file of your choice.
    Andy Wilkinson
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •