a decorator to log facility