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

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

本文整理了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

  1. @Test
  2. public void testGlobal() throws Exception {
  3. GeoServerInfo info = importer.getConfiguration().getGlobal();
  4. assertNotNull(info);
  5. LoggingInfo logging = importer.getConfiguration().getLogging();
  6. assertNotNull(logging);
  7. assertEquals("DEFAULT_LOGGING.properties", logging.getLevel());
  8. assertTrue(logging.isStdOutLogging());
  9. assertEquals("logs/geoserver.log", logging.getLocation());
  10. assertFalse(info.isVerbose());
  11. assertFalse(info.isVerboseExceptions());
  12. assertEquals(8, info.getNumDecimals());
  13. assertEquals("UTF-8", info.getCharset());
  14. assertEquals(3, info.getUpdateSequence());
  15. }
  16. }

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

  1. @Override
  2. protected Object load() {
  3. return getGeoServer().getLogging();
  4. }
  5. };

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

  1. @Override
  2. protected LoggingInfo load() {
  3. return getGeoServer().getLogging();
  4. }
  5. };

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

  1. @Override
  2. public boolean synchronize(LoggingInfo info) throws Exception {
  3. if (info == null) {
  4. throw new NullArgumentException("Incoming object is null");
  5. }
  6. try {
  7. // LOCALIZE service
  8. final LoggingInfo localObject = geoServer.getLogging();
  9. // overwrite local object members with new incoming settings
  10. BeanUtils.copyProperties(localObject, info);
  11. // disable the message producer to avoid recursion
  12. producer.disable();
  13. // save the localized object
  14. geoServer.save(localObject);
  15. } catch (Exception e) {
  16. if (LOGGER.isLoggable(java.util.logging.Level.SEVERE))
  17. LOGGER.severe(this.getClass() + " is unable to synchronize the incoming event: "
  18. + info);
  19. throw e;
  20. } finally {
  21. // enable message the producer
  22. producer.enable();
  23. }
  24. return true;
  25. }

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

  1. @Override
  2. public boolean synchronize(LoggingInfo info) throws Exception {
  3. if (info == null) {
  4. throw new NullArgumentException("Incoming object is null");
  5. }
  6. try {
  7. // LOCALIZE service
  8. final LoggingInfo localObject = geoServer.getLogging();
  9. // overwrite local object members with new incoming settings
  10. BeanUtils.copyProperties(localObject, info);
  11. // disable the message producer to avoid recursion
  12. producer.disable();
  13. // save the localized object
  14. geoServer.save(localObject);
  15. } catch (Exception e) {
  16. if (LOGGER.isLoggable(java.util.logging.Level.SEVERE))
  17. LOGGER.severe(this.getClass() + " is unable to synchronize the incoming event: "
  18. + info);
  19. throw e;
  20. } finally {
  21. // enable message the producer
  22. producer.enable();
  23. }
  24. return true;
  25. }

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

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

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

  1. /** Visit both GeoServers and register the differences. */
  2. private void computeDifferences() {
  3. // check GeoServer global settings differences
  4. if (!checkEquals(geoServerA.getGlobal(), geoServerB.getGlobal())) {
  5. differences.add(new InfoDiff(geoServerA.getGlobal(), geoServerB.getGlobal()));
  6. }
  7. if (!checkEquals(geoServerA.getLogging(), geoServerB.getLogging())) {
  8. differences.add(new InfoDiff(geoServerA.getLogging(), geoServerB.getLogging()));
  9. }
  10. // check services differences
  11. computeServicesDifference();
  12. // check settings differences
  13. computeSettingsDifference();
  14. }

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

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

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

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

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

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

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

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

相关文章