add visible option for log.