InternetMarkeLogger
in package
central logging class for InternetMarke.
Uses LogControl where available, falls back to FileLog otherwise
Table of Contents
- LOG_FILE = 'shipping.internetmarke'
- Log file name
- LOG_FILE_DEBUG = 'shipping.internetmarke-debug'
- Debug log file name
- LOG_GROUP = 'shipping'
- LogControl group
- $configuration : mixed
- ShipcloudConfigurationStorage instance
- $fileLog : mixed
- FileLog instance
- $logControl : mixed
- LogControl instance
- __construct() : mixed
- constructor; initializes logging mechanism (LogControl/FileLog) and configuration
- debug_notice() : mixed
- logs a debug message.
- error() : mixed
- logs an error message
- notice() : mixed
- logs a notice message
- warning() : mixed
- logs a warning message
Constants
LOG_FILE
Log file name
public
mixed
LOG_FILE
= 'shipping.internetmarke'
LOG_FILE_DEBUG
Debug log file name
public
mixed
LOG_FILE_DEBUG
= 'shipping.internetmarke-debug'
LOG_GROUP
LogControl group
public
mixed
LOG_GROUP
= 'shipping'
Properties
$configuration
ShipcloudConfigurationStorage instance
protected
mixed
$configuration
$fileLog
FileLog instance
protected
mixed
$fileLog
$logControl
LogControl instance
protected
mixed
$logControl
Methods
__construct()
constructor; initializes logging mechanism (LogControl/FileLog) and configuration
public
__construct() : mixed
Return values
mixed —debug_notice()
logs a debug message.
public
debug_notice(string $message) : mixed
Debug messages are used for extended logging; this will log all API traffic
Parameters
- $message : string
-
message to be logged
Return values
mixed —error()
logs an error message
public
error(string $message) : mixed
Parameters
- $message : string
-
message to be logged
Return values
mixed —notice()
logs a notice message
public
notice(string $message) : mixed
Parameters
- $message : string
-
message to be logged
Return values
mixed —warning()
logs a warning message
public
warning(string $message) : mixed
Parameters
- $message : string
-
message to be logged