Ñò Ê|¾Mc@sYdZddkZddkZddklZddkZddkZdaddd„ƒYZdd„Z dZ dZ e d „e ƒZ deieieid„Zedjo¡ddkZddkZedddddddd ƒe dƒZx%edƒD]ZeideƒqWeidƒZxeD] ZeGHq5WeidƒndS(t iÿÿÿÿN(tdatetimet DelayInfocBseZd„Zd„ZRS(cCs@|djottiƒtƒ}n|ii|dƒ}|S(Ntdelayt?(tstrRtnowtlogger_time_startt__dict__tget(tselftnametresult((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyt __getitem__ s cCs)dg}|i|iiƒƒ|iƒS(NR(textendRtkeyst__iter__(R R((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyRs (t__name__t __module__R R(((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyR s t to_be_namedcCs"titi|ƒtƒƒ}|S(N(tloggingt LoggerAdaptert getLoggerR(R tlogger((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyRss9%(delay)-15s - %(name)-5s - %(levelname)-8s - %(message)siiiicCs||S(((tatb((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyt!scCs¢tii|ƒpti|dƒntiƒatiƒ}|i ti ƒti t ƒ}ti i||dd|d|ƒ}|i|ƒ|i|ƒdS(Niÿs.logtmaxBytest backupCount(tostpathtexiststmakedirsRRRRRtsetLeveltDEBUGt Formattert LOG_FORMATthandlerstRotatingFileHandlert setFormattert addHandler(R tdirectRRRt formatterthandler((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pytstart#s  &  t__main__R ttotoR)s./RiRsi = %ds%s*s./totoi((iiiiiis./toto*(t__doc__Rtlogging.handlersRtsettingsRtNoneRRRR$t LOG_OFFSETStreducet LOG_OFFSETt LOGGINGDIRtLOGGINGmaxBytestLOGGINGbackupCountR,Rtglobtsyst my_loggertrangetitdebugtlogfilestfilenametexit(((s=/home/olivier/project/pgsql/contrib/openBarter/cron/logger.pyts2