apply_filters( 'woocommerce_logger_log_message', string $message , string $level , array $context , object $handler )
Filter the logging message. Returning null will prevent logging from occuring since 5.3.
Description Description
Parameters Parameters
- $message
-
Log message.
- $level
-
One of: emergency, alert, critical, error, warning, notice, info, or debug.
- $context
-
Additional information for log handlers.
- $handler
-
The handler object, such as WC_Log_Handler_File. Available since 5.3.
Source Source
File: includes/class-wc-logger.php
Changelog Changelog
Version | Description |
---|---|
3.1 | Introduced. |