Thruway\Logging\Logger::notice PHP Method

notice() public static method

public static notice ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null
    public static function notice($object = null, $message, $context = [])
    {
        static::log($object, LogLevel::NOTICE, $message, $context);
    }

Usage Example

Beispiel #1
0
 /**
  * Changes the Precision for PHP configs that default to less than 16
  */
 public static function checkPrecision()
 {
     if (ini_get('precision') < 16) {
         Logger::notice(null, 'Changing PHP precision from ' . ini_get('precision') . ' to 16');
         ini_set('precision', 16);
     }
 }