Move log to a module