Merge pull request #15348 from davefx/patch-1
Add new filter woocommerce_logger_log_message
This commit is contained in:
commit
9880879ebb
|
@ -129,6 +129,7 @@ class WC_Logger implements WC_Logger_Interface {
|
||||||
|
|
||||||
if ( $this->should_handle( $level ) ) {
|
if ( $this->should_handle( $level ) ) {
|
||||||
$timestamp = current_time( 'timestamp' );
|
$timestamp = current_time( 'timestamp' );
|
||||||
|
$message = apply_filters( 'woocommerce_logger_log_message', $message, $level, $context );
|
||||||
|
|
||||||
foreach ( $this->handlers as $handler ) {
|
foreach ( $this->handlers as $handler ) {
|
||||||
$handler->handle( $timestamp, $level, $message, $context );
|
$handler->handle( $timestamp, $level, $message, $context );
|
||||||
|
|
Loading…
Reference in New Issue