org.geoserver.config.GeoServer.getLogging()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(207)

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

GeoServer.getLogging介绍

[英]The logging configuration.
[中]日志记录配置。

代码示例

代码示例来源:origin: geoserver/geoserver

@Test
  public void testGlobal() throws Exception {
    GeoServerInfo info = importer.getConfiguration().getGlobal();
    assertNotNull(info);

    LoggingInfo logging = importer.getConfiguration().getLogging();
    assertNotNull(logging);

    assertEquals("DEFAULT_LOGGING.properties", logging.getLevel());
    assertTrue(logging.isStdOutLogging());
    assertEquals("logs/geoserver.log", logging.getLocation());
    assertFalse(info.isVerbose());
    assertFalse(info.isVerboseExceptions());
    assertEquals(8, info.getNumDecimals());
    assertEquals("UTF-8", info.getCharset());
    assertEquals(3, info.getUpdateSequence());
  }
}

代码示例来源:origin: org.geoserver.web/web-core

@Override
  protected Object load() {
    return getGeoServer().getLogging();
  }
};

代码示例来源:origin: org.geoserver.web/gs-web-core

@Override
  protected LoggingInfo load() {
    return getGeoServer().getLogging();
  }
};

代码示例来源:origin: org.geoserver/gs-jms-geoserver

@Override
public boolean synchronize(LoggingInfo info) throws Exception {
  if (info == null) {
    throw new NullArgumentException("Incoming object is null");
  }
  try {
    // LOCALIZE service
    final LoggingInfo localObject = geoServer.getLogging();
    // overwrite local object members with new incoming settings
    BeanUtils.copyProperties(localObject, info);
    // disable the message producer to avoid recursion
    producer.disable();
    // save the localized object
    geoServer.save(localObject);
  } catch (Exception e) {
    if (LOGGER.isLoggable(java.util.logging.Level.SEVERE))
      LOGGER.severe(this.getClass() + " is unable to synchronize the incoming event: "
          + info);
    throw e;
  } finally {
    // enable message the producer
    producer.enable();
  }
  return true;
}

代码示例来源:origin: org.geoserver/jms-geoserver

@Override
public boolean synchronize(LoggingInfo info) throws Exception {
  if (info == null) {
    throw new NullArgumentException("Incoming object is null");
  }
  try {
    // LOCALIZE service
    final LoggingInfo localObject = geoServer.getLogging();
    // overwrite local object members with new incoming settings
    BeanUtils.copyProperties(localObject, info);
    // disable the message producer to avoid recursion
    producer.disable();
    // save the localized object
    geoServer.save(localObject);
  } catch (Exception e) {
    if (LOGGER.isLoggable(java.util.logging.Level.SEVERE))
      LOGGER.severe(this.getClass() + " is unable to synchronize the incoming event: "
          + info);
    throw e;
  } finally {
    // enable message the producer
    producer.enable();
  }
  return true;
}

代码示例来源:origin: org.geoserver.community/gs-hz-cluster

"handleSettingsPostModified", SettingsInfo.class);
} else if (LoggingInfo.class.isAssignableFrom(clazz)) {
  subj = gs.getLogging();
  notifyMethod =
      ConfigurationListener.class.getMethod(

代码示例来源:origin: org.geoserver.community/gs-jms-geoserver

/** Visit both GeoServers and register the differences. */
private void computeDifferences() {
  // check GeoServer global settings differences
  if (!checkEquals(geoServerA.getGlobal(), geoServerB.getGlobal())) {
    differences.add(new InfoDiff(geoServerA.getGlobal(), geoServerB.getGlobal()));
  }
  if (!checkEquals(geoServerA.getLogging(), geoServerB.getLogging())) {
    differences.add(new InfoDiff(geoServerA.getLogging(), geoServerB.getLogging()));
  }
  // check services differences
  computeServicesDifference();
  // check settings differences
  computeSettingsDifference();
}

代码示例来源:origin: org.geoserver.web/web-core

location= getGeoServerApplication().getGeoServer().getLogging().getLocation();

代码示例来源:origin: org.geoserver.web/gs-web-core

location = getGeoServerApplication().getGeoServer().getLogging().getLocation();

代码示例来源:origin: org.geoserver.community.backuprestore/gs-backup-restore-core

assertEquals(null, geoServer.getLogging().getLocation());

代码示例来源:origin: org.geoserver.community.backuprestore/gs-backup-restore-core

catalogTsklet.doWrite(geoserver.getLogging(), td.get(Paths.BASE), "logging.xml");
assertEquals(geoserver.getLogging(), gsLogging);

相关文章