gnu-social/plugins/ApiLogger
Diogo Cordeiro c18f26145c [CORE] Move core plugins to a new modules directory
For reference (raised by rozzin in IRC):

* http://foldoc.org/module
* http://foldoc.org/library
* http://foldoc.org/plugin

As noted by XRevan86, modules are not necessarily non-essential.
As we will keep the modules directory in GS root [therefore, near to
plugins/], it is evidenced the difference between both.

This is a simple yet fundamental structural change. It doesn't change
functionality but makes clearer the way we understand GNU social's
internals.
2021-07-16 19:44:33 +01:00
..
locale [CORE] Move core plugins to a new modules directory 2021-07-16 19:44:33 +01:00
ApiLoggerPlugin.php [VersionBump] 1.19.0, fairly late 2019-06-07 15:02:08 +01:00
README Add plugin READMEs 2016-02-08 17:48:37 +00:00

The ApiLogger plugin allows random sampling of API requests.

Installation
============
add "addPlugin('ApiLogger');"
to the bottom of your config.php

Settings
========
frequency: How often to sample (number between 0.0 and 1.0 representing
percentage -- e.g.: 0.1 will check about 10% of hits). Default 1.0

Example
=======
addPlugin('ApiLogger', array(
    'frequency' => 1.0
));