Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Logging question

 

 

First page Previous page 1 2 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded


keemllib at gmail

Sep 1, 2012, 8:43 AM

Post #26 of 29 (240 views)
Permalink
Re: Logging question [In reply to]

On 09/01/2012 05:40 AM, Yianni Vidalis wrote:
...
> Thank you very much for your .conf file. I installed it on openSuSE 12.1
> and it works flawlessly (I'm running master.)

Yianni;

Thanks for testing. The 0.26 release notes have been updated to point to
a Wiki addition with that change:

http://www.mythtv.org/wiki/Simple_rsyslog_Configuration
--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


stephengrobertson at gmail

Sep 2, 2012, 2:01 PM

Post #27 of 29 (233 views)
Permalink
Re: Logging question [In reply to]

On Sat, Sep 1, 2012 at 4:43 PM, Bill Meek <keemllib [at] gmail> wrote:
> On 09/01/2012 05:40 AM, Yianni Vidalis wrote:
> ...
>
>> Thank you very much for your .conf file. I installed it on openSuSE 12.1
>> and it works flawlessly (I'm running master.)
>
> Yianni;
>
> Thanks for testing. The 0.26 release notes have been updated to point to
> a Wiki addition with that change:
>
> http://www.mythtv.org/wiki/Simple_rsyslog_Configuration
>
> --
> Bill

I am trying to investigate a problem with mythvidexport.py and in the
process was looking at this new logging. It took me a while to get
the output from mythvidexport into a log file. (First I heard of
rsyslog was an hour ago)

I think the reason is that the "mythvidexport.py" portion is the
PROGRAMNAME rather than the first characters of msg

Adding this to what was in the wiki:

$template vidExport,"%TIMESTAMP% %HOSTNAME% %PROGRAMNAME% %msg%\n"
if $syslogfacility-text == 'local7' and $PROGRAMNAME startswith
'mythvidexport.py' then
/var/log/mythtv-syslog/mythvidexport.log;vidExport
& ~

got me messages like
Sep 2 21:48:43 bressay mythvidexport.py database callback received
-- 0xa3edc5c
Sep 2 21:48:43 bressay mythvidexport.py Releasing connection to pool

in my logs which seems good.

I don't know whether this difference where mythvidexport.py is the
program name rather than mythlogserver is down to me specifying the
logging to the script incorrectly, whether it is an intentional
difference or whether the expectation would be for it to behave the
same as other parts of myth.

Stephen
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


keemllib at gmail

Sep 2, 2012, 7:07 PM

Post #28 of 29 (229 views)
Permalink
Re: Logging question [In reply to]

On 09/02/2012 04:01 PM, Stephen Robertson wrote:
...
> I am trying to investigate a problem with mythvidexport.py and in the
> process was looking at this new logging. It took me a while to get
> the output from mythvidexport into a log file. (First I heard of
> rsyslog was an hour ago)
>
> I think the reason is that the "mythvidexport.py" portion is the
> PROGRAMNAME rather than the first characters of msg
>
> Adding this to what was in the wiki:
>
> $template vidExport,"%TIMESTAMP% %HOSTNAME% %PROGRAMNAME% %msg%\n"
> if $syslogfacility-text == 'local7' and $PROGRAMNAME startswith
> 'mythvidexport.py' then
> /var/log/mythtv-syslog/mythvidexport.log;vidExport
> & ~

Hi;

Well, 1st, OOPS --- the traditional directory is /var/log/mythtv,
not mythtv-syslog (I use --logpath, not --syslog and was just
testing in a different directory.) The Wiki is corrected, so thanks.

Asked on the -users channel and the author explained that
*currently*, the Python bindings don't use mythlogserver.

I added the solution to the Wiki that Anthony Messina wrote in this
thread as a catch-all for any 'non-mythlogserver' programs.

If you'd like to test that for your case, it would be great, as
the only copy of mythvidexport.py I could find was for 0.24.

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


stephengrobertson at gmail

Sep 3, 2012, 6:09 AM

Post #29 of 29 (224 views)
Permalink
Re: Logging question [In reply to]

On Mon, Sep 3, 2012 at 3:07 AM, Bill Meek <keemllib [at] gmail> wrote:
> On 09/02/2012 04:01 PM, Stephen Robertson wrote:
> ...
>
>> I am trying to investigate a problem with mythvidexport.py and in the
>>
>> process was looking at this new logging. It took me a while to get
>> the output from mythvidexport into a log file. (First I heard of
>> rsyslog was an hour ago)
>>
>> I think the reason is that the "mythvidexport.py" portion is the
>> PROGRAMNAME rather than the first characters of msg
>>
>> Adding this to what was in the wiki:
>>
>> $template vidExport,"%TIMESTAMP% %HOSTNAME% %PROGRAMNAME% %msg%\n"
>> if $syslogfacility-text == 'local7' and $PROGRAMNAME startswith
>> 'mythvidexport.py' then
>> /var/log/mythtv-syslog/mythvidexport.log;vidExport
>> & ~
>
>
> Hi;
>
> Well, 1st, OOPS --- the traditional directory is /var/log/mythtv,
> not mythtv-syslog (I use --logpath, not --syslog and was just
> testing in a different directory.) The Wiki is corrected, so thanks.
>
> Asked on the -users channel and the author explained that
> *currently*, the Python bindings don't use mythlogserver.
>
> I added the solution to the Wiki that Anthony Messina wrote in this
> thread as a catch-all for any 'non-mythlogserver' programs.
>
> If you'd like to test that for your case, it would be great, as
> the only copy of mythvidexport.py I could find was for 0.24.

That catch all certainly catches mythvidexport.py so would expect it
to work for anything else with a program name beginning with myth*

I also added slightly to the comment on the wiki.

Thanks.
Stephen
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

First page Previous page 1 2 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.