Download the PHP package presprog/kirby-monolog without Composer
On this page you can find all versions of the php package presprog/kirby-monolog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download presprog/kirby-monolog
More information about presprog/kirby-monolog
Files in presprog/kirby-monolog
Package kirby-monolog
Short Description Use the Monolog logger library with Kirby CMS
License MIT
Informations about the package kirby-monolog
📜 Monolog for Kirby CMS
This plugin adds the Monolog logging library to Kirby.
⚡ Ready for Kirby 4!
🤟Usage
Use the monolog()
helper function:
If you throw and handle exceptions in your own code, you may log them with site()->logException()
:
This will log the exception message with critical
level alongside the stack trace.
The plugin also automatically listens to Kirby system.exception
hook and logs the exception message as well as the stacktrace to the default log file.
💻 How to install
via Composer (recommended)
via ZIP archive
Download the ZIP archive, extract it into your plugins folder (defaults to site/plugins
) and rename the subfolder to monolog
.
✅ To do
- [ ] Define more channels via the config file
- [ ] …
Alternatives
There are plenty of alternatives:
- bnomei/monolog by Bruno Meilick (This one also integrates Monolog)
- johannschopplich/kirbylog by Johann Schopplich (This one is dependency-free!)
- michnhokn/logger by Michael Scheurich
- bvdputte/log by Bert Vandeputte
Made with ♥️ and ☕ by Present Progressive