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.