Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionLoggerLogMessage

Informations

Allows to make extra action while a log is triggered
Hook actionLoggerLogMessage
Locations
BO
FO
Type action
Origin core
Aliases

Located in

Origin File

Call of the Hook in the origin file

Hook::exec(
    'actionLoggerLogMessage',
    [
        'message' => $message,
        'level' => $level,
        'isLogged' => $level >= $this->level,
    ]
);