logging command in log file