rhettg / Tron

Next generation batch process scheduling and management
Other
11 stars 0 forks source link

SIGHUP should cause log file to be re-opened #37

Closed rhettg closed 13 years ago

rhettg commented 13 years ago

Left a TODO inside the code, but he SIGHUP handler just handles reconfig, but really we should also re-open log files.

Python logging appears to not have this sort of functionality built in, though there is some sort of Watching Handler that re-opens if it sees the file got moved or something.

rhettg commented 13 years ago

Done. Pretty simple subclass of logging.FileHandler