[mythtv] mythbackend: Suppress timestamp in log?

Gary Buhrmaster gary.buhrmaster at gmail.com
Fri Feb 19 19:01:27 UTC 2016


On Fri, Feb 19, 2016 at 5:34 PM, Richard Shaw <hobbes1069 at gmail.com> wrote:
> Since I log to the journal I already get a timestamp, getting two takes up
> lots of columns and makes the log much more difficult to read.

I presume you are using stdout to the journal?

This can (as posted by Mike) lose some information
that is not sent to the console (but will be sent
to a file or syslog).  Whether that additional
information is useful may depend on your next
failure.

And while reworking the logging is a long term
goal, I think that adding in the option to to directly
log via sd_journal_[print|send] might be a good
enough interim solution with maybe a new
--journal-logging command line option?

I sort of have coding such to submit as a feature
patch (for consideration) on my "wish I had some
time to contribute right now" list, but every time
I look at the logging I have found myself starting
to look at danielk's (not complete) logging rewrite
branch.  I need to stop doing that and just add
in journal logging (at the next time I have time).
Of course, if anyone else gets there first, I will
not be upset.


More information about the mythtv-dev mailing list