[REF] refactor logger with Guewen suguestion