Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -235,43 +235,4 @@ class _Log extends \IPS\Patterns\ActiveRecord
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief The latest severity set by `i()`
|
||||
* @deprecated
|
||||
*/
|
||||
static protected $severity = LOG_NOTICE;
|
||||
|
||||
/**
|
||||
* This method is deprecated but provided for code that may still use `\IPS\Log::i()->write()`
|
||||
*
|
||||
* @deprecated
|
||||
* @param int $key Severity level
|
||||
* @return static
|
||||
*/
|
||||
public static function i( $key )
|
||||
{
|
||||
static::$severity = $key;
|
||||
return new static;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is deprecated but provided for code that may still use `\IPS\Log::i()->write()`
|
||||
*
|
||||
* @deprecated
|
||||
* @param string $message Message to log
|
||||
* @param string $suffix Category
|
||||
* @return void
|
||||
*/
|
||||
public function write( $message, $suffix=NULL )
|
||||
{
|
||||
if ( static::$severity === LOG_DEBUG )
|
||||
{
|
||||
static::debug( $message, $suffix );
|
||||
}
|
||||
else
|
||||
{
|
||||
static::log( $message, $suffix );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user