|
|
|
@ -4,18 +4,27 @@ namespace Lychee\Modules;
|
|
|
|
|
|
|
|
|
|
final class Log {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return boolean Returns true when successful.
|
|
|
|
|
*/
|
|
|
|
|
public static function notice($connection, $function, $line, $text = '') {
|
|
|
|
|
|
|
|
|
|
return Log::text($connection, 'notice', $function, $line, $text);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return boolean Returns true when successful.
|
|
|
|
|
*/
|
|
|
|
|
public static function error($connection, $function, $line, $text = '') {
|
|
|
|
|
|
|
|
|
|
return Log::text($connection, 'error', $function, $line, $text);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return boolean Returns true when successful.
|
|
|
|
|
*/
|
|
|
|
|
private static function text($connection, $type, $function, $line, $text = '') {
|
|
|
|
|
|
|
|
|
|
// Check dependencies
|
|
|
|
|