Fixed some issues in cli.logger