logger: add option "flush" for command /logger