MongoLog
PHP Manual

MongoLog::getLevel

(No version information available, might only be in SVN)

MongoLog::getLevelGets the log level

说明

public static int MongoLog::getLevel ( void )

This can be used to see the log level. Use the constants described in the MongoLog section with bitwise operators to check the level.

<?php

if (MongoLog::getLevel() & MongoLog::FINE) {
    echo 
"lots 'o logs\n";
}

if (
MongoLog::getLevel() ^ MongoLog::NONE) {
    echo 
"logging, at least a little\n";
}

if (
MongoLog::getLevel() == MongoLog::ALL) {
    echo 
"logging at the highest levels\n";
}

?>

参数

此函数没有参数。

返回值

Returns the current level.


MongoLog
PHP Manual