Class for "logging" to console when using built in webserver in PHP 5.4
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
slog.php

README.md

Helper class for printing to console when using PHP 5.4 built in webserver

Install:

include('slog.php');

Using:

slog::get_instance()->info('This is an example!');
//Outputs in console: [Sun Jan 29 18:56:12 2012] INFO: This is an example!
slog::get_instance()->warning('This is an warning!');
slog::get_instance()->error('This is an error!');