1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which logging option’s description is, if an error occurs…

Added 19 Jan 2024

Which logging option’s description is, if an error occurs when writing to the syslog, send output to the system console?

  1. LOG_CONS Correct answer
  2. LOG_NDELAY
  3. LOG_ODELAY
  4. LOG_PERROR

Correct answer

A. LOG_CONS

17 views

MCQSEXAM

Explanation

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).

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs