phalcon ログ出力方法 phalcon

php phalcon

・phalcon ログ出力方法
$logger = new ¥Phalcon¥Logger¥Adapter¥File( ¥log¥p.log );
$logger->log( zzzzzz1 );

・use で以下を指定すると Logger::ERRORなどつかえる
use Phalcon¥Logger;
use Phalcon¥Logger¥Adapter¥File as FileAdapter;
$logger = new ¥Phalcon¥Logger¥Adapter¥File( ¥log¥p.log );
$logger->log( zzz1 Logger::ERROR);
$logger->log( zzz2 Logger::DEBUG);
$logger->log( zzz3 Logger::INFO);
$logger->log( zzz4 Logger::NOTICE);
$logger->log( zzz5 Logger::ALERT);
$logger->log( zzz6 Logger::CRITICAL);