\Omega\Logging LogLevel

LogLevel class.

The LogLevel class defines a set of constants representing different log levels used in the logging system of the Omega. These levels help categorize log messages according to their severity or importance. The class includes the following constants:

  • EMERGENCY: Indicates system-wide issues requiring immediate action (e.g., the system is unusable).
  • ALERT: Requires immediate attention but is less critical than an emergency (e.g., database connection lost).
  • CRITICAL: Serious problems that need urgent intervention (e.g., application errors).
  • ERROR: Errors that prevent the application from functioning correctly (e.g., exceptions).
  • WARNING: Non-critical issues that might lead to errors if not addressed (e.g., deprecated functions).
  • NOTICE: Normal but significant events that don’t indicate problems (e.g., configuration changes).
  • INFO: Informational messages that highlight progress or state of the application.
  • DEBUG: Detailed information intended for debugging purposes.

This class allows the consistent use of these predefined log levels across the application, making it easier to manage and filter logs.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
EMERGENCY
ALERT
CRITICAL
ERROR
WARNING
NOTICE
INFO
DEBUG
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Constant

EMERGENCY

EMERGENCY = 'emergency' : string

Emergency log level.

ALERT

ALERT = 'alert' : string

Alert log level.

CRITICAL

CRITICAL = 'critical' : string

Critical log level.

ERROR

ERROR = 'error' : string

Error log level.

WARNING

WARNING = 'warning' : string

Warning log level.

NOTICE

NOTICE = 'notice' : string

Notice log level.

INFO

INFO = 'info' : string

Info log level.

DEBUG

DEBUG = 'debug' : string

Debug log level.