Log Engine Framework

Log Engine Framework Created by pooky. This templates have specific characteristics, namely: 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 .

You can use this Log Engine Framework on Php scripts category for log, logging, mail, mongodb, mysql, smtp, sqlite and another uses.

Log Engine Framework
© Copyright by pooky

Features:

  • None: None
  • None: None
  • Php 5.3: PHP 5.3
  • None: None
  • Php: PHP
  • No: No

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// Load autoload classrequire_once 'AutoLoader.php';// Make log object$log = new LEF/Log();// Init. log engine$log->engine();// Trigger engine to write log$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// Load autoload classrequire_once 'AutoLoader.php';// Make log object$log = new LEF/Log();// Make mongodb object$mongoDriver = new LEF/Driver/MongoDB();// Init. engine with mongo db driver$log->engine($mongoDriver->init('db_name'));// Trigger engine to write log$log->addLogNotice('Log added to db');