Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aqlx86/musil

Just a simple logger
https://github.com/aqlx86/musil

elasticsearch laravel5 logger

Last synced: about 2 months ago
JSON representation

Just a simple logger

Awesome Lists containing this project

README

        

Musil
------------
Simple logger for laravel that writes logs into elasticsearch.

Installation
------------

Add Musil to your composer.json file:

```composer.phar require "aqlx86/musil"```

Add the service provider to your Laravel application config:

```PHP
Musil\MusilServiceProvider::class
```

```
php artisan vendor:publish --provider="Musil\MusilServiceProvider"
```

Usage
-----

```PHP

musil()->info('this is an info log');

musil()->debug('2 + 2 is %sum%', ['sum' => (2 + 2)]);
```