Groovy @Log 的用法

2015-12-14 0 535
Groovy @Log 的用法
import groovy.util.logging.*
import java.util.logging.Level

@Log("log2")
class Car {
    Car() {
        log2.setLevel(Level.FINE)
        log2.severe 'Car constructed'
        log2.warning 'Car constructed'
        log2.info 'Car constructed'
        log2.config 'Car constructed'
        log2.fine 'Car constructed'
        log2.finer 'Car constructed'
        log2.finest 'Car constructed'
    }   
}

def c = new Car()

遇见资源网 groovy Groovy @Log 的用法 http://www.ox520.com/13740.html

上一篇:

已经没有上一篇了!

下一篇:

已经没有下一篇了!

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务