add poly/function for logger