# HG changeset patch # User bsw # Date 1415637889 -3600 # Node ID e047ad7fe13918bb7d7447f0654fa47aaf7c6e6d # Parent 1b4bda1107b98bb74a7c15704004405732cbb9c9 Added example config for admin logger diff -r 1b4bda1107b9 -r e047ad7fe139 config/example.lua --- a/config/example.lua Mon Nov 10 17:35:48 2014 +0100 +++ b/config/example.lua Mon Nov 10 17:44:49 2014 +0100 @@ -238,6 +238,24 @@ end } +-- Admin logger +-- ------------------------------------------------------------------------ +-- Logging administrative activities +-- disabled by default + +--[[ +config.admin_logger = function(params) + + local adminid = app.session.member_id + local adminname = app.session.member.name + local url = data._webmcp_path + + -- do something (e.g. calling 'logger' via extos.pfilter) + +end +--]] + + -- WebMCP accelerator -- uncomment the following two lines to use C implementations of chosen -- functions and to disable garbage collection during the request, to