add a Logger
call Logger in Filepoller