djgadd / themosis-logger
Monolog for Themosis
Requires
- php: >=7.0
- composer/installers: ~1.2
- djgadd/themosis-illuminate: ^1.0
- monolog/monolog: ^1.19
- themosis/framework: ^1.3
This package is auto-updated.
Last update: 2021-10-15 21:19:43 UTC
README
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
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,
Examples
Log::error('An error occurred', ['code' => 1, 'message' => 'Oops.']);
See the Monolog docs for more info.
Helpers
The following (additional) helpers are available: -
- info
- logger
See the Laravel docs for more info.
Support
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.
Contributing
Any contributions would be encouraged and much appreciated, you can contribute by: -
- Reporting bugs
- Suggesting features
- Sending pull requests