A package for the Themosis framework that provides access to Monolog. Similar to the Laravel setup, provides support for log files, Loogly, and Slack. Also loads in some Laravel helper functions associated with logging. This plugin requires keltiecochrane/themosis-illuminate
's ConfigServiceProvider to be setup.
Install through composer: -
composer require keltiecochrane/themosis-logger
Copy the logger.config.php
file to your theme/resources/config
folder, and configure as appropriate.
Register the service provider in your theme/resources/config/providers.php
file: -
KeltieCochrane\Logger\LogServiceProvider::class,
Optionally register the alias in your theme/resources/config/theme.php
file: -
'Log' => KeltieCochrane\Logger\LogFacade::class,
Log::error('An error occurred', ['code' => 1, 'message' => 'Oops.']);
See the Monolog docs for more info.
The following (additional) helpers are available: -
- info
- logger
See the Laravel docs for more info.
This package is provided as is, though we'll endeavour to help where we can. By using this plugin you forfeit your right to any warranty or costs associated with it's use.
Any contributions would be encouraged and much appreciated, you can contribute by: -
- Reporting bugs
- Suggesting features
- Sending pull requests