New method that takes a flag to log.