logger: add debug file option