本文整理汇总了Java中org.pentaho.di.core.logging.LogLevel.MINIMAL属性的典型用法代码示例。如果您正苦于以下问题:Java LogLevel.MINIMAL属性的具体用法?Java LogLevel.MINIMAL怎么用?Java LogLevel.MINIMAL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.pentaho.di.core.logging.LogLevel
的用法示例。
在下文中一共展示了LogLevel.MINIMAL属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: logger
public static LogLevel logger(String level) {
LogLevel logLevel = null;
if ("basic".equals(level)) {
logLevel = LogLevel.BASIC;
} else if ("detail".equals(level)) {
logLevel = LogLevel.DETAILED;
} else if ("error".equals(level)) {
logLevel = LogLevel.ERROR;
} else if ("debug".equals(level)) {
logLevel = LogLevel.DEBUG;
} else if ("minimal".equals(level)) {
logLevel = LogLevel.MINIMAL;
} else if ("rowlevel".equals(level)) {
logLevel = LogLevel.ROWLEVEL;
} else {
logLevel = KETTLE_LOGLEVEL;
}
return logLevel;
}
示例2: getLogLevelByDesc
public LogLevel getLogLevelByDesc()
{
if(loglevel==null) return LogLevel.BASIC;
LogLevel retval;
if(loglevel.equals(logLevelCodes[0]))
retval=LogLevel.NOTHING;
else if(loglevel.equals(logLevelCodes[1]))
retval=LogLevel.ERROR;
else if(loglevel.equals(logLevelCodes[2]))
retval=LogLevel.MINIMAL;
else if(loglevel.equals(logLevelCodes[3]))
retval=LogLevel.BASIC;
else if(loglevel.equals(logLevelCodes[4]))
retval=LogLevel.DETAILED;
else if(loglevel.equals(logLevelCodes[5]))
retval=LogLevel.DEBUG;
else
retval=LogLevel.ROWLEVEL;
return retval;
}
示例3: getLogLevelByDesc
public LogLevel getLogLevelByDesc() {
if ( loglevel == null ) {
return LogLevel.BASIC;
}
LogLevel retval;
if ( loglevel.equals( logLevelCodes[0] ) ) {
retval = LogLevel.NOTHING;
} else if ( loglevel.equals( logLevelCodes[1] ) ) {
retval = LogLevel.ERROR;
} else if ( loglevel.equals( logLevelCodes[2] ) ) {
retval = LogLevel.MINIMAL;
} else if ( loglevel.equals( logLevelCodes[3] ) ) {
retval = LogLevel.BASIC;
} else if ( loglevel.equals( logLevelCodes[4] ) ) {
retval = LogLevel.DETAILED;
} else if ( loglevel.equals( logLevelCodes[5] ) ) {
retval = LogLevel.DEBUG;
} else {
retval = LogLevel.ROWLEVEL;
}
return retval;
}
示例4: testLogMinimal
@Test
public void testLogMinimal() {
streamLogger = new ConfigurableStreamLogger( log, is, LogLevel.MINIMAL, PREFIX );
streamLogger.run();
Mockito.verify( log ).logMinimal( OUT1 );
Mockito.verify( log ).logMinimal( OUT2 );
}