资源图标

预览 Log Engine Framework 等待分享

无下载权限
Log Engine is PHP framework that used for the purpose of easier implementation of the logging function in PHP scripts. Logging is possible via flat File, E-mail, MySQL, SQLite and Mongo DB.

Basic usage

To implement basic logging feature to your application you need to write only 4 lines of code!

<?php
require_once 'AutoLoader.php';

$log = new LEF/Log();

$log->engine();

$log->addLogInfo('Hello from LEF!');


Using drivers

Using drivers is also very easy, you need to make driver object and call it inside engine.

<?php
require_once 'AutoLoader.php';

$log = new LEF/Log();

$mongoDriver = new LEF/Driver/MongoDB();

$log->engine($mongoDriver->init('db_name'));

$log->addLogNotice('Log added to db');
作者
0daydown
下载
0
查看
67
首次发布
最后更新
评分
0.00 星 0 星

来自0daydown的更多资源

ZIY 会员微信群