Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

djgadd/themosis-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Themosis Logger

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

About

A logger for themosis.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages