
This package tests the syslog-writing functionality of Log::Info
This test confirms that the test script and the modules it calls compiled successfully.
The :DEFAULT,
:log_levels,
and :syslog_facilities tags are passed to the use call for Log::Info.
Create a channel TESTCHAN1 (at default level) with sink SINK1 connected to syslog at level LOG_WARNING.
Test no exception thrown.
Log MESSAGE1 at level LOG_ERR, MESSAGE2 at level LOG_NOTICE.
Test that no exception is thrown.
Grep syslog for messages; test MESSAGE1 is present, MESSAGE2 is not.
Create a channel TESTCHAN2 at level LOG_ERR with sink SINK1 connected to syslog at level LOG_NOTICE,
with facility mail.
Test exception thrown at add_sink point.
Add sink SINK1 to TESTCHAN2 connected to syslog at level LOG_NOTICE,
with facility FTY_MAIL.
Test no exception thrown.
Log MESSAGE2 at level LOG_WARNING, MESSAGE3 at level LOG_CRIT.
Test that no exception is thrown.
Grep syslog for messages; test MESSAGE3 is present, MESSAGE2 is not.
Grep syslog for messages; test MESSAGE3 is present, MESSAGE2 is not.