本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.setLevel()
方法的一些代码示例,展示了ZeidonLogger.setLevel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeidonLogger.setLevel()
方法的具体详情如下:
包路径:com.quinsoft.zeidon.ZeidonLogger
类名称:ZeidonLogger
方法名:setLevel
暂无
代码示例来源:origin: com.quinsoft.zeidon/object-browser
@Override
public void actionPerformed( ActionEvent e )
{
if ( e.getActionCommand().equals( "OK" ) )
{
task.log().setLevel( group.getSelection().getActionCommand() );
task.dblog().setLevel( group.getSelection().getActionCommand() );
frame.dispose();
return;
}
task.log().setLevel( e.getActionCommand() );
task.dblog().setLevel( e.getActionCommand() );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
TaskImpl(JavaObjectEngine objectEngine, Application app, String taskId)
{
super(app);
isValid = true;
this.taskId = taskId;
this.objectEngine = objectEngine;
// Check to see if this is the system task. It's ok to use '==' instead of .equals()
// because we control the creation of the system task.
isSystemTask = ( taskId == ObjectEngine.ZEIDON_SYSTEM_APP_NAME );
// viewList is a weak map. This way we can get a list of views if necessary
// (the browser needs this) but it won't hold onto views once they are no longer
// in use.
viewList = new MapMaker().concurrencyLevel( 2 ).weakKeys().makeMap();
viewNameList = new ViewNameList();
description = this.taskId;
String prefix = String.format( " [%4s] ", taskId );
logger = new TaskLogger( prefix );
dblogger = new TaskLogger( prefix );
String logLevel = this.readZeidonConfig( app.getName(), "InitialLogLevel" );
if ( ! StringUtils.isBlank( logLevel ) )
{
logger.setLevel( logLevel );
dblogger.setLevel( logLevel );
}
log().info( "Created new task for app %s, task ID = %s", app.getName(), taskId );
}
内容来源于网络,如有侵权,请联系作者删除!