Syntax
syslog(string, string, string)
Description
The syslog() provides a simple interface to the system log service.
The input contains:
A Severity Level : “ALERT”, “CRIT”, “DEBUG”, “EMERG”, “ERR”, “INFO”, “NOTICE”, “WARNING”
A message
A Tag (most likely an application name)
Example
syslog("CRIT", "Humgrummit failure calling floggle-toggle", "troutd")
syslog or equivalent will contain the error
journalctl | grep troutbridge Nov 10 08:40:40 troutbridge mwnci[6058]: CRIT troutd[6058]: 2064/11/10 08:40:40 Humgrummit failure calling floggle-toggle