igor822/loggy

This is a simple logger in php to log applications.

Installs: 22

Dependents: 0

Stars: 1

Watchers: 1

Forks: 2

Open Issues: 1

Language: PHP

0.0.1 2014-02-21 12:08 UTC

README

This is a simple logger in php to log applications.

Requirements

  • PHP 5.3.0

Usage

The [example][example] are a good place to start.

See a sample code:

require_once 'lib/Loggy.php';

$arr = array('Key 1' => 'Value 1', 'Key 2' => 2);

Loggy::debug('Debug 1');
Loggy::error('Error 1');
Loggy::notice('Notice 1');
Loggy::debug($arr);


$slog = Loggy::getLogger();
$slog->debug('Debug 2');
$slog->error('Error 2');
$slog->notice('Notice 2');
$slog->debug($arr);