BackendInterface
interface BackendInterface (View source)
Contract for a logger backend interface
Methods
Carries out all actions necessary to prepare the logging backend, such as opening the log file or opening a database connection.
Appends the given message along with the additional information into the log.
Carries out all actions necessary to cleanly close the logging backend, such as closing the log file or disconnecting from a database.
Details
void
open()
Carries out all actions necessary to prepare the logging backend, such as opening the log file or opening a database connection.
void
append(string $message, int $severity = LOG_INFO, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null)
Appends the given message along with the additional information into the log.
void
close()
Carries out all actions necessary to cleanly close the logging backend, such as closing the log file or disconnecting from a database.