implement a configurable logging file