Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
/ zconfig_watchedfile Public archive

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler.

License

Notifications You must be signed in to change notification settings

gocept/zconfig_watchedfile

Repository files navigation

zconfig_watchedfile

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler, which is helpful for integrating with an external logrotate service:

%import zconfig_watchedfile
<logger>
  name example

  <watchedfile>
    path /path/to/logfile.log
  </watchedfile>
</logger>

The <watchedfile> supports both the default ZConfig settings for handlers (formatter, dateformat, level) and the parameters of WatchedFileHandler (mode, encoding, delay).

This package is compatible with Python version 3.8 up to 3.11.

About

Provides a ZConfig statement to register a logging handler that uses a WatchedFileHandler.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages