Class shardimage\shardimagephp\helpers\LoggerHelper
Inheritance | shardimage\shardimagephp\helpers\LoggerHelper |
---|
Public Methods
Method | Description | Defined By |
---|---|---|
phpToPsrLevel() | shardimage\shardimagephp\helpers\LoggerHelper | |
psrToPhpLevel() | shardimage\shardimagephp\helpers\LoggerHelper | |
replaceBinaryStrings() | Replaces the lines containing binary strings with a human readable replacement. | shardimage\shardimagephp\helpers\LoggerHelper |
Method Details
public static string phpToPsrLevel ( $level, $default = \Psr\Log\LogLevel::DEBUG ) | ||
$level | integer | PHP log level. |
$default | string | [optional] The default PSR log level. |
return | string | PSR log level. |
---|
public static integer psrToPhpLevel ( $level, $default = LOG_DEBUG ) | ||
$level | string | PSR log level. |
$default | integer | [optional] The default PHP log level. |
return | integer | PHP log level. |
---|
Replaces the lines containing binary strings with a human readable replacement.
public static string replaceBinaryStrings ( $message ) | ||
$message | string |