gpt4 book ai didi

com.quinsoft.zeidon.ZeidonLogger.setLevel()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:03:49 27 4
gpt4 key购买 nike

本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.setLevel()方法的一些代码示例,展示了ZeidonLogger.setLevel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeidonLogger.setLevel()方法的具体详情如下:
包路径:com.quinsoft.zeidon.ZeidonLogger
类名称:ZeidonLogger
方法名:setLevel

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 );
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com