webCOMAND

io_comand_log\event\type

Defines the various event types that may appear in an event log.

Constants

  • SUCCESS (0) - Indicates a step or process completed successfully.

  • EMERGENCY (1) - System should exit immediately due to a fatal, non-recoverable error.  This is the most critical type of error.

  • ALERT (2) - User should be notified and system should exit as soon as possible.

  • CRITICAL (3) - Indicates a critical error has occurred that will prevent the process from running properly.

  • ERROR (4) - A non-fatal error has occurred.

  • WARNING (5) - Indicates something undesirable has happened that requires attention, but it will not prevent normal operation.

  • NOTICE (6) - Indicates a message that should be noted under normal operations.

  • INFO (7) - Indicates information that may be of interest, but does not require attention.

  • VERBOSE (8) - Indicates additional information useful when you would like to learn more about exactly what is happening.

  • DEBUG (9) - Indicates detailed information useful for debugging a process or code.

Example

$repo = comand::repo();

// increase the log level from the default level of INFO
$repo->SystemLog->set_event_log_level(\io_comand_log\event\type::DEBUG);