当前位置: 首页>>代码示例>>Java>>正文


Java LogLevel.ROWLEVEL属性代码示例

本文整理汇总了Java中org.pentaho.di.core.logging.LogLevel.ROWLEVEL属性的典型用法代码示例。如果您正苦于以下问题:Java LogLevel.ROWLEVEL属性的具体用法?Java LogLevel.ROWLEVEL怎么用?Java LogLevel.ROWLEVEL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.pentaho.di.core.logging.LogLevel的用法示例。


在下文中一共展示了LogLevel.ROWLEVEL属性的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;
}
 
开发者ID:jiangzongyao,项目名称:kettle_support_kettle8.0,代码行数:19,代码来源:Constant.java

示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:WriteToLogMeta.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:WriteToLogMeta.java

示例4: testLogRowlevel

@Test
public void testLogRowlevel() {
  streamLogger = new ConfigurableStreamLogger( log, is, LogLevel.ROWLEVEL, PREFIX );
  streamLogger.run();

  Mockito.verify( log ).logRowlevel( OUT1 );
  Mockito.verify( log ).logRowlevel( OUT2 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:ConfigurableStreamLoggerTest.java


注:本文中的org.pentaho.di.core.logging.LogLevel.ROWLEVEL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。