[mythtv-users] logpath and having pids in log file names?

Mike Perkins mikep at randomtraveller.org.uk
Tue Mar 13 14:08:43 UTC 2012


On 13/03/12 14:00, Jim Stichnoth wrote:
> On Tue, Mar 13, 2012 at 6:44 AM, Brian J. Murrell<brian at interlinx.bc.ca>  wrote:
>> So, it seems on master that there is now a "--logpath" switch instead of
>> the "--logfile" switch.  And this ends up creating log file names with
>> dates and pids in them -- completely unpredictable.
>>
>> So no longer is one able to simply "tail -f
>> /var/log/mythtv/mythbackend.log" and always be getting the latest log,
>> right?  This really sucks for people who have persistent log file
>> monitors that depend on a consistent filename.
>
> Have you tried using the syslog facility?
> http://www.mythtv.org/wiki/Rsyslog_Configuration
>
> This lets you continue using a single file.  The only drawback I found
> is that you don't get microsecond timestamp resolution, but you could
> use --logpath to an alternate directory if you occasionally need that
> resolution.
>
If rsyslog is configured correctly, you can get microsecond (or better) log stamps.

-- 

Mike Perkins



More information about the mythtv-users mailing list