collective.envlogfile

UNKNOWN


License
Other
Install
pip install collective.envlogfile==1.0.0

Documentation

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.

path = self.section.path % os.environ

Usage with plone.recipe.zope2instance:

[instance]
event-log-custom =
    %import collective.envlogfile
    <envlogfile>
        path %(MY_ENV_FOLDER)s/instance.log
        level INFO
    </envlogfile>