' . $_log . '';
} elseif (stripos($_log, 'warn') !== false) {
echo '
' . $_log . '
';
} elseif (stripos($_log, 'notice') !== false) {
echo '' . $_log . '
';
} else {
echo '' . $_log . '
';
}
}
public static function filtreLog(string $_log){
if(self::ifFolderWww($_log)){
self::printLog($_log);
} elseif(self::ifFolderDomain($_log)){
self::printLog($_log);
} elseif(self::ifGeneral($_log)){
self::printLog($_log);
}
}
private static function ifFolderWww(string $_log){
return (stripos($_log, DOCUMENT_ROOT) !== false) ? TRUE : FALSE;
}
private static function ifFolderDomain(string $_log){
return (stripos($_log, DOMAIN_CMS) !== false) ? TRUE : FALSE;
}
private static function ifGeneral(string $_log){
return (stripos($_log, "/var/www/") == FALSE AND stripos($_log, "https://") == FALSE) ? TRUE : FALSE;
}
}