Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzulla/slog.php
Singleton and Simple, PSR-3 Logger Container
https://github.com/uzulla/slog.php
Last synced: about 1 month ago
JSON representation
Singleton and Simple, PSR-3 Logger Container
- Host: GitHub
- URL: https://github.com/uzulla/slog.php
- Owner: uzulla
- Created: 2014-05-24T15:22:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-17T16:09:53.000Z (over 10 years ago)
- Last Synced: 2024-04-22T17:12:17.814Z (9 months ago)
- Language: PHP
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SLog.php
=======Singleton and Simple, PSR-3 Logger Container
WHY?
========I want use something like a Object::Container(perl).
and, some convinience feature.
SYNOPSIS
========## setup
Sample using monolog.
```php
pushHandler(new \Monolog\Handler\StreamHandler(__DIR__.'app.log', \Monolog\Logger::DEBUG));
\Uzulla\SLog::setLogger('APP', $app_log);
```## use
```php
debug('debug me!!');
//or
L::getLogger('APP')->info("log!", ['why'=>'kantanbenri']);
```KANTANBENRI
=========```php
info("uhoh!");
```this is usable in haste.(but not smart)
Simple Logger
=============This library contain simple PSR-3 Logger `\Uzulla\SLog\SimpleLogger`.
```php
alert('ALERT!!!');
```That use error_log(). unless setting log filename.
LICENSE
=======MIT