Difference between revisions of "Mythlogserver"

From MythTV Official Wiki
Jump to: navigation, search
(title wrong and stub)
(Update for 0.28)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Wrongtitle|mythlogserver}}
 
{{Wrongtitle|mythlogserver}}
 +
 +
In 0.28, the compile time option ''--disable-mythlogserver'' was removed and <code>mythlogserver</code>
 +
is disabled by default. ''--enable-mythlogserver'' was added for those that need it. That is '''very'''
 +
unlikely! See {{shortgitcommit|ac41535}} for details of the 0.28 changes. Users can verify that their
 +
distribution was properly built by typing <code>mythbackend --help</code> and noting that the run time
 +
''--disable-mythlogserver'' option '''doesn't''' appear.
  
 
<code>mythlogserver</code> is a program added in the 0.26 release.
 
<code>mythlogserver</code> is a program added in the 0.26 release.
Log messages generated by MythTV programs are sent to
+
Log messages generated by all of the other MythTV programs are sent to
<code>mythlogserver</code> which distributes them based on
+
<code>mythlogserver</code> which then distributes them to files based on
 
the ''--syslog'', and ''--logpath'' command line options as well
 
the ''--syslog'', and ''--logpath'' command line options as well
as to the database (if ''--nodblog'' isn't set.)
+
as to the database (if ''--nodblog'' isn't set.) For details on
 +
how the logging options work, refer to [[Logging]].
  
It is started automatically when existing MythTV programs start,
+
In 0.27, the ''--nologserver'' command line option has been added and if used,
 +
<code>mythlogserver</code> will not be started. Output will only
 +
go to the console (file, db and syslog are disabled.) Naturally, the
 +
''--quiet'' option shouldn't be used if logging is desired (the same is
 +
probably true for ''--daemon'', but that needs testing.)
 +
 
 +
Additionally, users building from source can select
 +
the '' --disable-mythlogserver'' option when running ''configure''.
 +
If used, each mythProgram will have a logging thread and that will handle syslog, file
 +
logging.
 +
 
 +
Also in 0.27 <code>mythlogserver</code> is now optional, and really only intended for debugging purposes.
 +
 
 +
A single copy of <code>mythlogserver</code> is started on each host,
 +
as soon as any MythTV program starts,
 
typically <code>mythbackend</code> and <code>mythfrontend</code>.
 
typically <code>mythbackend</code> and <code>mythfrontend</code>.
 
<code>mythlogserver</code>'s own logging options are inherited from the
 
<code>mythlogserver</code>'s own logging options are inherited from the
program that starts it.
+
program that starts it. Log entries in <code>mythlogserver</code>'s own
 +
log can be seen whenever one of its clients, such as a backend, starts
 +
and stops using it. Also note that when <code>mythlogserver</code>
 +
detects that no other MythTV program is using it, it will stop running
 +
after 5 minutes.
  
 
See 0.26 specific sections in [[Logrotate_-_all_applications|Logrotate All Applications]]
 
See 0.26 specific sections in [[Logrotate_-_all_applications|Logrotate All Applications]]
Line 17: Line 42:
 
<code>mythlogserver</code> uses [http://www.zeromq.org ZeroMQ] libraries, which
 
<code>mythlogserver</code> uses [http://www.zeromq.org ZeroMQ] libraries, which
 
are included with the MythTV distribution.
 
are included with the MythTV distribution.
 
{{Stub}}
 
  
 
[[Category:MythTV_Software]]
 
[[Category:MythTV_Software]]
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Latest revision as of 04:11, 23 January 2016

Important.png Note: The correct title of this article is mythlogserver. It appears incorrectly here due to technical restrictions.


In 0.28, the compile time option --disable-mythlogserver was removed and mythlogserver is disabled by default. --enable-mythlogserver was added for those that need it. That is very unlikely! See ac41535 for details of the 0.28 changes. Users can verify that their distribution was properly built by typing mythbackend --help and noting that the run time --disable-mythlogserver option doesn't appear.

mythlogserver is a program added in the 0.26 release. Log messages generated by all of the other MythTV programs are sent to mythlogserver which then distributes them to files based on the --syslog, and --logpath command line options as well as to the database (if --nodblog isn't set.) For details on how the logging options work, refer to Logging.

In 0.27, the --nologserver command line option has been added and if used, mythlogserver will not be started. Output will only go to the console (file, db and syslog are disabled.) Naturally, the --quiet option shouldn't be used if logging is desired (the same is probably true for --daemon, but that needs testing.)

Additionally, users building from source can select the --disable-mythlogserver option when running configure. If used, each mythProgram will have a logging thread and that will handle syslog, file logging.

Also in 0.27 mythlogserver is now optional, and really only intended for debugging purposes.

A single copy of mythlogserver is started on each host, as soon as any MythTV program starts, typically mythbackend and mythfrontend. mythlogserver's own logging options are inherited from the program that starts it. Log entries in mythlogserver's own log can be seen whenever one of its clients, such as a backend, starts and stops using it. Also note that when mythlogserver detects that no other MythTV program is using it, it will stop running after 5 minutes.

See 0.26 specific sections in Logrotate All Applications and Simple rsyslog Configuration if they are used.

mythlogserver uses ZeroMQ libraries, which are included with the MythTV distribution.