AalogPHP是一个简单的PHP日志包,要求PHP5.3+,具备可配置和可扩展性。
示例代码:
<?phprequire_oce('Aalog.php');//Defaultloggigto/tmp/aalog.txtAalog::log('Logthiserror');//LogtoaMogoDBlogcollectioAalog::hadler(fuctio($ifo){static$co=ull;if(!$co){$co=ewMogo('localhost:27017');}$co->mydb->log->isert($ifo);});//LogaalertAalog::log('Theskyisfallig!',Aalog::ALERT);//LogsomedebugifoAalog::log('Debuggigifo',Aalog::DEBUG);?>









评论