Sim - Monolog Logging Service

Free Sim - Monolog Logging Service 4.1.1

No permission to download
Compatible XF Versions
  1. 2.1
  2. 2.2
  3. 2.3
This XenForo 2.x addon adds logging functionality using the Monolog library from GitHub - Seldaek/monolog: Sends your logs to files, sockets, inboxes, databases and various web services

Notes

v3.x of this addon uses Monolog v1
v4.x of this addon uses Monolog v2

There is currently no difference in functionality between the two versions other than the version of Monolog used.

Features
  • Log to a file
  • Send logs via email
  • Emailed logs are deduplicated and buffered
  • Configure minimum logging levels for files vs email logging
  • Add extra visitor data to logs: user_id and username
  • Add extra web data to logs: current request URI, request method and client IP
  • Test tool included to verify that logs are being written to disk - go to AdminCP > Tools > Checks and tests > Test Monolog

Sim Monolog Logging Service-1.webp



Usage Instructions

By default, this addon will log events to a file called internal_data/monolog.log - this is configurable.

To use the default logging facility, do the following in your addon code:

PHP:
You must log in to view
(3 lines)

However, it is recommended that you create your own channel for your addon to make it easier to filter log entries:

PHP:
You must log in to view
(2 lines)

Refer to the documentation for more detailed usage instructions for Monolog.

You can create your own handler stack to customise how things are logged:

PHP:
You must log in to view
(12 lines)

Refer to Handlers, Formatters and Processors for more information.
Author
XenBD
Downloads
2
Views
32
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from XenBD

Latest updates

  1. 4.1.1

    Minor bugfix to explicitly enforce admin permissions on admincp tools
Similar resources Most view View more
Back
Top