Community discussion is present here: http://community.pbspro.org/t/pp-838-support-for-logging-via-syslog-in-pbs/591
...
1) The same log_match() function will be used. If this attribute is not set, PTL will check the pbs.conf file for syslog setting.
...
facility = //PBS_SYSLOG from pbs.conf
severity = // PBS_SYSLOGSEVR from pbs.conf (by default NONE)
Methods:
def get_log_type()
Summary: logic for which messages to read (local logs / syslog)
...
b) If PBS_SYSLOG is not set, we will locally in code set variable PBS_SYSLOG=0
c) If PBS_LOCALLOG is not set, we will locally in code set variable PBS_LOCALLOG=1
2) Logic for whether to read local logs/ syslog we will follow this table -
...
Note: The error thrown will be PtlLogMatchError
Return:
self.file_to_check (/ / file_to_check =1 for syslog, file_to_check=2 for local logs and file_to_check=3 for both)
...
1) PBSSyslogUtils.get_log_type() to check if local logs/ syslog is to be checked
x= PBSSyslogUtils.get_log_type(syslog=syslog)
2) if x =1 or 3 - read _log_match(syslog=true)
...