Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datakurre/collective.envlogfile
ZConfig logfile with environment variable interpolated path
https://github.com/datakurre/collective.envlogfile
Last synced: about 2 months ago
JSON representation
ZConfig logfile with environment variable interpolated path
- Host: GitHub
- URL: https://github.com/datakurre/collective.envlogfile
- Owner: datakurre
- Created: 2014-07-24T10:33:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-24T10:56:35.000Z (over 10 years ago)
- Last Synced: 2024-11-18T19:51:17.731Z (2 months ago)
- Language: Python
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
README
Envlogfile
==========Provides ZConfig_-compatible logfile handler called ``envlogfile``, which
is otherwise similar to the default ``logfile`` handler, but interpolates
environment variables in the given log file path name... code:: python
path = self.section.path % os.environ
Usage with `plone.recipe.zope2instance`_:
.. _ZConfig: https://pypi.python.org/pypi/ZConfig
.. _plone.recipe.zope2instance: https://pypi.python.org/pypi/plone.app.zope2instance.. code:: ini
[instance]
event-log-custom =
%import collective.envlogfile
path %(MY_ENV_FOLDER)s/instance.log
level INFO