AR Model Viewer for WooCommerce

Ar_Model_Viewer_For_Woocommerce_Logger

The logger functionality of the plugin.

Tags
subpackage

Ar_Model_Viewer_For_Woocommerce/public

author

Table of Contents

Properties

$plugin_name  : string
The ID of this plugin.
$plugin_prefix  : string
The unique prefix of this plugin.
$version  : string
The version of this plugin.

Methods

__construct()  : mixed
Initialize the class and set its properties.
log_to_woocommerce()  : mixed
Logs messages to WooCommerce system with varying levels of severity.

Properties

Methods

__construct()

Initialize the class and set its properties.

public __construct(string $plugin_name, string $plugin_prefix, string $version) : mixed
Parameters
$plugin_name : string

The name of the plugin.

$plugin_prefix : string

The unique prefix of this plugin.

$version : string

The version of this plugin.

Tags
since
1.0.0

log_to_woocommerce()

Logs messages to WooCommerce system with varying levels of severity.

public log_to_woocommerce(string $message[, string $level = 'info' ]) : mixed

This function checks if logging is enabled in the plugin's settings and, if so, logs messages using WooCommerce's logging system based on the specified level.

Parameters
$message : string

The message to be logged.

$level : string = 'info'

The severity level of the log. Default is 'info'.


        
On this page

Search results