utils.SetupLogging: Return function to reopen log file
authorMichael Hanselmann <hansmi@google.com>
Mon, 31 Jan 2011 16:26:55 +0000 (17:26 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 2 Feb 2011 16:02:27 +0000 (17:02 +0100)
commit9a6813ac255b4bb5b8357166cfc2aaaae17609eb
treebb3289a1afd858b2e581fc6986a64c62147cc7f9
parentcfcc79c664ab1926770399ad760703abb3a8b9bb
utils.SetupLogging: Return function to reopen log file

This function can be used from a SIGHUP handler to reopen log files.
Initial, simple unittests are included.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/utils/log.py
test/ganeti.utils.log_unittest.py