PHPackages                             sesser/slogger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sesser/slogger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sesser/slogger
==============

A Simple logger library

1.0.2(13y ago)0191MITPHPPHP &gt;=5.3.0

Since Feb 8Pushed 13y ago1 watchersCompare

[ Source](https://github.com/sesser/Slogger)[ Packagist](https://packagist.org/packages/sesser/slogger)[ Docs](https://github.com/sesser/Slogger)[ RSS](/packages/sesser-slogger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

\#Sesser\\Slogger#

[![Build Status](https://camo.githubusercontent.com/e6ede6d729669c535d89000ed5e0d623c0606509fef60faf47dfe45fd10a3680/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7365737365722f536c6f676765722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/sesser/Slogger)

This is a basic logging utility. It supports a file based logger and a [MongoDB](http://www.mongodb.org)based logger. Each log provider has different settings which I'll go over below. The way this util is set up should make it easy to implement whatever provider your project requires (another database, a different NoSQL store, a web service, etc).

\##Features &amp; Goodies##

- Easy to configure and use
- Multiple log levels. DEBUG, INFO, WARN, ERROR
- Log exceptions with stacktrace. Just pass an Exception to a Slogger method.
- Can be re-configured the middle of your app (see below)
- Create multiple Loggers with different Providers/settings
- Easily implement any Provider you want (Mongodb, SQL, Memcacheq, Beanstalkd, Redis, etc)
- It's fast, Unit Tested, and well documented

\##Sesser\\Slogger\\Providers\\File##

The File provider is pretty basic. It supports a few configuration options as described below:

The default config looks like this:

```
