org.codehaus.groovy.tools.shell.IO有四个冗长级别,但没有明确说明它们是做什么的。哪个是系统默认值?它们之间有什么不同?到目前为止,我注意到的唯一一件事是,如果详细程度设置为安静,Groovysh将不会打印shell中最后返回的语句……
package org.codehaus.groovy.tools.shell.IO
public static final Verbosity QUIET = new Verbosity("QUIET");
public static final Verbosity INFO = new Verbosity("INFO");
public static final Verbosity VERBOSE = new Verbosity("VERBOSE");
public static final Verbosity DEBUG = new Verbosity("DEBUG");发布于 2012-06-13 00:53:17
看起来默认值是INFO,它是is set here。
而且它看起来像是基于级别的used here to set the colour of the output。然而,我只是简单地看了一下代码和grep,可能是错误的或者遗漏了什么。
https://stackoverflow.com/questions/11001044
复制相似问题