gpt4 book ai didi

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

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

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

ZeidonLogger.info介绍

暂无

代码示例

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

@Override
public void event( EventNotification notification, EventData data )
{
  Task task = data.getTask();
  ZeidonLogger logger = task.log();
  
  logger.info( "Event notification: %s", notification.toString() );
  if ( data.getView() != null )
    logger.info( "    View = %s", data.getView() );
  if ( data.getEntityDef() != null )
    logger.info( "    EntityDef = %s", data.getEntityDef() );
  if ( data.getAttributeDef() != null )
    logger.info( "    AttributeDef = %s", data.getAttributeDef() );
  if ( data.getEntityInstance() != null )
    logger.info( "    EntityInstance = %s", data.getEntityInstance() );
  
  Exception e = new EventNotificationMessage();
  ByteArrayOutputStream bytes = new ByteArrayOutputStream();
  e.printStackTrace( new PrintStream( bytes ) );
  logger.info( "Stack trace:\n%s", bytes.toString() );
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

logger.info( "%s %s", key, value );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

@Override
  protected void initializeBasicDataSource( BasicDataSource dataSource,
                       Task task,
                       Application application)
  {
    String openModes = getConfigValue( "OpenModes" );
    if ( ! StringUtils.isBlank( openModes ) )
    {
      SQLiteConfig config = new SQLiteConfig();
      String[] modes = openModes.split( "," );
      for ( String mode : modes )
        config.setOpenMode(SQLiteOpenMode.valueOf( mode.trim().toUpperCase() ) );

      Properties props = config.toProperties();
      task.log().info( "Sqlite: setting open modes = %s", props );

      for ( Object prop : props.keySet() )
        dataSource.addConnectionProperty( prop.toString(), props.getProperty( prop.toString() ) );
    }
  }
}

代码示例来源:origin: com.quinsoft.zeidon/object-browser

@Override
  public void actionPerformed( ActionEvent arg0 )
  {
    JFileChooser chooser = new JFileChooser();
    int returnVal = chooser.showOpenDialog( ViewListTable.this );
    if ( returnVal == JFileChooser.APPROVE_OPTION )
    {
      String filename = chooser.getSelectedFile().getAbsolutePath();
      if ( ! filename.contains( "." ) )
        filename += format.getExtension();
      View v = env.getView( view );
      v.serializeOi().setFormat( format ).withIncremental().toFile( filename );
      env.getOe().getSystemTask().log().info( "OI written to %s", filename );
    }
  }
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

if ( m.matches() )
  task.log().info( "Domain %s: using between logic '%s'", getName(), config );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

logger.info( "Loading application list" );
    logger.info( "Loading applications from resource %s", url.getFile() );
    InputStream stream = url.openStream();
    ApplicationHandler appHandler = new ApplicationHandler( apps );
      logger.info( "No zeidon.app found via ZEIDON_HOME." );
    else
      logger.info( "Loading apps using ZEIDON_HOME (%s)/zeidon.app", home.getHomeDirectory() );
      ApplicationHandler appHandler = new ApplicationHandler( apps );
      PortableFileReader.ReadPortableFile( inputStream, logger, appHandler );

代码示例来源:origin: com.quinsoft.zeidon/object-browser

void saveEnvironment()
{
  env.saveEnvironment();
  env.getOe().getSystemTask().log().info( "Browser environment saved" );
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

log().info( "Entities = " + entities.toString() );
log().info( "Total entities = " + count );
return count;

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

@Override
public String logViews( String taskId )
{
  if ( oe == null )
    return "ObjectEngine not specified";
  Task task = oe.getTaskById( taskId );
  if ( task == null )
    return "Unknown TaskId";
  task.log().info( "Logging views for task %s (%s)", taskId, new DateTime() );
  for ( View view : task.getViewList() )
  {
    Collection<String> nameList = view.getNameList();
    task.log().info( "   View %s (%s)  Entity Count = %d  Names = %s",
             view.getId(), view.getLodDef(), view.getEntityCount( true ), nameList );
  }
  return "Views listed in log";
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

InputStream stream = response.getEntity().getContent();
StatusLine status = response.getStatusLine();
task.log().info( "Status from http activate = %s", status );
int statusCode = status.getStatusCode();

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

String version = _package.getImplementationVersion();
String builtDate = _package.getImplementationTitle();
logger.info( "Zeidon JOE Version: %s  Build Date: %s", version, builtDate );
logger.info( "classpath = %s", getClassPath( logger ) );
logger.info(  "User.dir = %s", System.getProperty("user.dir") );
else
  logger.info( "startBrowser indicator is from zeidon.start.browser: %s", startBrowser );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private View activateFile( final String filename )
{
  task.dblog().info( "Reading OI from %s", filename );
  return new DeserializeOi( task )
          .fromResource( filename )
          .setFormat( fileDbUtils.getStreamFormat() )
          .activateFirst();
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private void loadLodDef( Task task, InputStream file )
{
  try
  {
    PortableFileReader.ReadPortableFile( file, task.log(), new LodDefHandler( this ) );
    task.log().info( "LodDef %s loaded from: %s", this, filename );
  }
  catch ( Exception e )
  {
    throw ZeidonException.wrapException( e ).prependFilename( filename );
  }
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

@Override
public String logTaskList()
{
  for ( Task task : oe.getTaskList() )
    task.log().info( "Task ID %s for %s has ~ %d views",
             task.getTaskId(), task.getApplication().getName(), task.getViewCount() );
  return "Tasks logged";
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

private void write( View view )
  {
    String filename = fileDbUtils.genKeyFilename( view );
    task.dblog().info( "Writing OI to %s", filename );
    view.serializeOi().setFormat( fileDbUtils.getStreamFormat() )
             .withIncremental()
             .toFile( filename );
  }
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

@Override
  public String logAllTasksAndViews()
  {
    for ( Task task : oe.getTaskList() )
    {
      task.log().info( "Task ID %s for %s", task.getTaskId(), task.getApplication().getName() );
      logViews( task.getTaskId() );
    }

    return "Tasks logged";
  }
}

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

task.log().info( "Displaying LodDef for %s", getName() );
for ( EntityDef entityDef : getEntityDefs() )
  task.log().info( "%s %d, count = %d", entityDef.getName(),
           entityDef.getDepth(), entityDef.getChildCount() );
  for ( AttributeDef attrib : entityDef.getAttributes() )
    task.log().info( "    Attrib: %s %d Domain:%s",
             attrib.getName(), attrib.getAttributeNumber(), type );
    continue;
  task.log().info( "    DataRecord: %s type=%s", dataRecord.getRecordName(), dataRecord.getType() );
  RelRecord relRecord = dataRecord.getRelRecord();
  if ( relRecord == null )
    continue;
  task.log().info( "    RelRecord: %s  type=%s", relRecord.getRecordName(), relRecord.getRelationshipType() );
  for ( RelField relField : relRecord.getRelFields() )
    task.log().info( "        RelField: %s, %d, %d", relField.getFieldName(),
             relField.getRelToken(), relField.getSrcToken() );

代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe

task.log().info( "Caught exception writing pessimisic locks on %s.  Trying again", lodDef );
break;

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