DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:logger

Logger Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin This plugin logs every request into a CSV file

Last updated on
2021-01-10
Provides
Action
Repository
Source

Tagged with logging

Description

This plugin logs every request of DokuWiki. It logs the date, time, ip, username, pc name, query string and user agent.

Usage

Install and activate the plugin and it will be logging every request.

All logs will be written to the following CSV file:

dokuwiki/data/media/admin/logs/<CURRENT_YEAR>.csv

For example:
You can download the CSV file of the year 2021 with the following query string:

dokuwiki/lib/exe/fetch.php?media=admin:logs:2021.csv

You can link the CSV file into a page with the following syntax:

{{:admin:logs:2021.csv|}}

:!: Finally, you have to restrict access of the namespace “admin”. :!:

Settings

You can exclude some namespaces from logging.

Insert a semicolon separated list of all namespaces into the field plugin»logger»ns_exclude like:

tasks:john:;admin:;bugs:

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

plugin/logger.txt · Last modified: 2023-10-31 00:13 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki