PHPUnit picking up on syslog messages?
问题 I am testing a logger class with a method that opens a log like so: openlog($this->identifier, $this->option, $this->facility); syslog($level, $message) closelog(); The $facility that my logger writes to is currently set as LOCAL0 When I unit test my logger I get the following message: Broadcast message from systemd-journald@myWS: phpserver7.0[9125]: Logger message How can I suppress this message with PHPUnit or in my code? Edit: This only seems to happen when I log a message with a severity