Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?
Correct answer
A. LOG_CONS
17 views
A. LOG_CONS
17 views
The logging option that corresponds to the description "if an error occurs when writing to the syslog, send output to the system console" is LOG_PERROR. When this option is used with the openlog() function in PHP, it indicates that error messages should be sent to both the system logger and the system console (stderr).
Not sure why the answer is A? Ask here and get an explanation.