djgadd/themosis-logger

This package is abandoned and no longer maintained. No replacement package was suggested.

Monolog for Themosis

1.0.6 2018-02-01 15:42 UTC

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