+ redefine logger and flush it