added a convenient method to FileLogger