Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Timestamps in upstart logs

I'm using upstart on Ubuntu to manage services. It writes to /var/log/upstart/<service>.log. Errors in this file don't have timestamps, which makes it difficult to diagnose problems.

Is there a way -- a stanza of some kind in the config file -- to tell upstart to write timestamps with its log output?

like image 545
blueimpb Avatar asked Jul 28 '13 17:07

blueimpb


1 Answers

You can try using annotate-output shell script from the devscripts package:

Source code here.

like image 175
Udi Avatar answered Sep 22 '22 12:09

Udi