Tideways.php
public static function log($level, $message)
    {
        if ($level <= self::$logLevel) {
            $level = ($level === 3) ? "debug" : (($level === 2) ? "info" : "warn");
            error_log(sprintf('[%s] tideways - %s', $level, $message), 0);
        }
    }
public static function log($level, $message)
    {
        if ($level <= self::$logLevel) {
            $level = ($level === 3) ? "debug" : (($level === 2) ? "info" : "warn");
            error_log(sprintf('[%s] tideways - %s', $level, $message), 0);
        }
    }
public static function log ( $ level , $ message ) { if ( $ level <= self :: $ logLevel ) { $ level = ( $ level === 3 ) ? "debug" : ( ( $ level === 2 ) ? "info" : "warn" ) ; error_log ( sprintf ( '[%s] tideways - %s' , $ level , $ message ) , 0 ) ; } }
Log a message to the PHP error log when the defined log-level is higher
or equal to the messages log-level.

@param int $level Logs message level. 1 = warning, 2 = notice, 3 = debug
@param string $message
@return void
Log a message to the PHP error log when the defined log - level is higher or equal to the messages log - level .