https://github.com/eaudeweb/edw.logger
https://github.com/eaudeweb/edw.logger
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eaudeweb/edw.logger
- Owner: eaudeweb
- Created: 2017-01-09T17:35:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T07:31:25.000Z (about 2 years ago)
- Last Synced: 2024-11-17T13:59:43.393Z (over 1 year ago)
- Language: Python
- Size: 90.8 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Installation
============
::
[instance]
...
eggs =
...
edw.logger
zcml =
...
edw.logger
Introduction
============
This package creates a new `edw.logger` log facility that logs to
INFO and ERROR the following events:
* Viewed pages - Enabled by default. Can be disabled via environment variable **EDW_LOGGER_PUBLISHER** (e.g.: *EDW_LOGGER_PUBLISHER=false*;
* Raised errors - Enabled by default. Can be disabled via environment variable **EDW_LOGGER_ERRORS** (e.g.: *EDW_LOGGER_ERRORS=false*);
* Added/created/copied/moved/deleted content - Enabled by default. Can be disabled via environment variable **EDW_LOGGER_CONTENT** (e.g.: *EDW_LOGGER_CONTENT=false*);
* ZODB commits - Enabled by default. Can be disabled via environment variable **EDW_LOGGER_DB** (e.g.: *EDW_LOGGER_DB=false*);
* Catalog indexing - Enabled by default. Can be disabled via environment variable **EDW_LOGGER_CATALOG** (e.g.: *EDW_LOGGER_CATALOG=false*);
* Catalog indexing stack trace - Disabled by default. Can be enabled via environment variable **EDW_LOGGER_CATALOG_STACK** (e.g.: *EDW_LOGGER_CATALOG_STACK=true*);
Privacy options
===============
User IP and user id are **disabled** by default, you can re-enable them using:
* **EDW_LOGGER_USER_IP** (e.g.: *EDW_LOGGER_USER_IP=true*);
* **EDW_LOGGER_USER_ID** (e.g.: *EDW_LOGGER_USER_ID=true*);