2017 © Pedro Peláez
 

library log

Logging class

image

naas/log

Logging class

  • Wednesday, April 12, 2017
  • by naas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

README


naas/log is a simple logging class, (*1)

Installation and so on..., (*2)

Install with composer, (*3)

json { "require": { "naas/log": "dev-master" } }, (*4)

Example

You need to include the Autoload.php and create a page class., (*5)

``` php require_once DIR . '/library/Autoload.php';, (*6)

// You may use thru a factory pattern $log = LogFactory::create(); $log->logIt('Type of log', 'Log message...'); $log->logIt('Type of error', 'Error message...', false); $log->logIt('Type of error in other file', 'Error message...', false, 'err');, (*7)

// Or use it by object creation $log = new Log(); $log->logIt('Type of log', 'Log message...'); $log->logIt('Type of error', 'Error message...', false); $log->logIt('Type of error in other file', 'Error message...', false, 'err');, (*8)

// Or use it thru static methods Log::logIt('Type of log', 'Log message...'); Log::logIt('Type of error', 'Error message...', false); Log::logIt('Type of error in other file', 'Error message...', false, 'err');, (*9)

// to check after..., (*10)

The Versions

12/04 2017

dev-master

9999999-dev http://www.nunoserrano.com

Logging class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log

12/04 2017

v1.0.0

1.0.0.0 http://www.nunoserrano.com

Logging class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log

12/04 2017

v0.5

0.5.0.0 http://www.nunoserrano.com

Logging class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log