def index(Integer max) { log.info("Test logging.") params.max = Math.min(max ?: 10, 100) respond dataDictService.list(params), model:[dataDictCount: dataDictService.count()] }
Grails - Log
原文:https://www.cnblogs.com/duchaoqun/p/12876101.html