Errors, logging and performance · Question 12 of 12

For a namespace, a SyslogWriter is configured only under LogLevel::ERROR. What happens with $logger->warning('...') from this namespace?

1 answer is correct. Hard

Show answer

Answer

  • C The entry is not written by the SyslogWriter because a writer configuration only applies to its level and more severe ones

Explanation

WARNING is less severe than ERROR; the writer configured for ERROR only captures ERROR, CRITICAL, ALERT and EMERGENCY.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications