CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11194] CMSMS Admin log hook

avatar
Created By: Ruud van der Velden (ruudvdvelden)
Date Submitted: 2016-10-24 12:43

Assigned To:
Resolution: None
State: Open
Summary:
CMSMS Admin log hook
Detailed Description:
A feature request regarding the possibilty for one or more modules to hook into
the built-in Admin log.

An example use case could be an administrator that owns multiple CMSMS websites
and has a server running a syslog receiver. A custom CMSMS module (syslog
originator) would be able to 'catch' important events and send those to the
syslog receiver. This allows professional users maintaining multiple CMSMS
install to centralize monitoring and alerting.

I think it would be nice to have the possibility to allow multiple modules use
the hook simultaneously/serial.

Perhaps the CMSMS Admin Log 'page' itself - as it currently exists - should then
be a module too (which can be disabled in favor of another module). Just
thinking out loud.

A log message should have some properties which can be used to
filter/differentiate the messages:

1. originator (e.g. Core, Module Name, Plugin Name, UDT name)
2. severity level (e.g. https://en.wikipedia.org/wiki/Syslog#Severity_level)
3. [optional] event id (e.g. numeric id defined by the originator, for filtering
purposes)
4. message (the message text). Multiple lines allowed?

Currently available:

5. ip address of 'client'
6. (admin) user name
7. item ID (e.g. content object id or template id)
8. Item name
9. Action (the message as listed in [4])
10. time stamp

Debug log messages in this same log/hook too?

Obviously CMSMS is providing the hook. Other modules are responsible for using
the hook and doing the actual logging to other systems like syslog, a time
series database or other logging/alerting system(s)

History