The Python protocol handler does not allow this to be done easily. You can have 2 ways to achieve this:
The easiest way is to set LOG_FILENAME already in logs / poller.log, and if you want to access your poller.log elsewhere, use a symbolic link :)
Create your own handler starting with TimedRotatingFileHandler and copy / paste doRollover () from the class / usr / lib / python 2.X / logging / handlers.py, TimedRotatingFileHandler. And change:
dfn = self.baseFilename + "." + time.strftime (self.suffix, timeTuple)
to
dfn = os.path.join ('logs', os.path.basename (self.baseFilename)) + "." + time.strftime (self.suffix, timeTuple) source share