org.geotools.util.logging.Logging.forceMonolineConsoleOutput()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(224)

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

Logging.forceMonolineConsoleOutput介绍

[英]Configures the default java.util.logging.ConsoleHandler in order to log records on a single line instead of two lines. More specifically, for each java.util.logging.ConsoleHandler using a java.util.logging.SimpleFormatter, this method replaces the simple formatter by an instance of MonolineFormatter. If no ConsoleHandler are found, then a new one is created.

Note: this method may have no effect if the loggings are redirected to an other logging framework, for example if #redirectToCommonsLogging has been invoked.
[中]配置默认java。util。登录中。ConsoleHandler,以便在一行而不是两行上记录记录。更具体地说,对于每个java。util。登录中。使用java的ConsoleHandler。util。登录中。SimpleFormatter,此方法用MonolineFormatter的实例替换简单格式化程序。如果未找到ConsoleHandler,则会创建一个新的ConsoleHandler。
注意:如果日志被重定向到其他日志框架,例如如果调用了#redirectToCommonsLogging,则此方法可能无效。

代码示例

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

/**
 * Configures the default {@linkplain java.util.logging.ConsoleHandler console handler} in order
 * to log records on a single line instead of two lines. More specifically, for each {@link
 * java.util.logging.ConsoleHandler} using a {@link java.util.logging.SimpleFormatter}, this
 * method replaces the simple formatter by an instance of {@link MonolineFormatter}. If no
 * {@code ConsoleHandler} are found, then a new one is created.
 *
 * <p><b>Note:</b> this method may have no effect if the loggings are redirected to an other
 * logging framework, for example if {@link #redirectToCommonsLogging} has been invoked.
 */
public void forceMonolineConsoleOutput() {
  forceMonolineConsoleOutput(null);
}

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

/** Main for test runner. */
public static void main(String[] args) {
  org.geotools.util.logging.Logging.GEOTOOLS.forceMonolineConsoleOutput();
  junit.textui.TestRunner.run(suite());
}

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

public static void main(String[] args) {
  org.geotools.util.logging.Logging.GEOTOOLS.forceMonolineConsoleOutput();
  junit.textui.TestRunner.run(suite());
}

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

log.forceMonolineConsoleOutput();

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Configures the default {@linkplain java.util.logging.ConsoleHandler console handler} in
 * order to log records on a single line instead of two lines. More specifically, for each
 * {@link java.util.logging.ConsoleHandler} using a {@link java.util.logging.SimpleFormatter},
 * this method replaces the simple formatter by an instance of {@link MonolineFormatter}. If
 * no {@code ConsoleHandler} are found, then a new one is created.
 * <p>
 * <b>Note:</b> this method may have no effect if the loggings are redirected to an other
 * logging framework, for example if {@link #redirectToCommonsLogging} has been invoked.
 */
public void forceMonolineConsoleOutput() {
  forceMonolineConsoleOutput(null);
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Configures the default {@linkplain java.util.logging.ConsoleHandler console handler} in
 * order to log records on a single line instead of two lines. More specifically, for each
 * {@link java.util.logging.ConsoleHandler} using a {@link java.util.logging.SimpleFormatter},
 * this method replaces the simple formatter by an instance of {@link MonolineFormatter}. If
 * no {@code ConsoleHandler} are found, then a new one is created.
 * <p>
 * <b>Note:</b> this method may have no effect if the loggings are redirected to an other
 * logging framework, for example if {@link #redirectToCommonsLogging} has been invoked.
 */
public void forceMonolineConsoleOutput() {
  forceMonolineConsoleOutput(null);
}

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

@Before
public final void setUp() throws Exception {
  if (setup) {
    throw new IllegalStateException("Are you calling super.setUp()!?");
  }
  setup = true;
  Logging.ALL.forceMonolineConsoleOutput();
  doSetUp();
}

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

@Before
public final void setUp() throws Exception {
  if (setup) {
    throw new IllegalStateException("Are you calling super.setUp()!?");
  }
  setup = true;
  Logging.ALL.forceMonolineConsoleOutput();
  doSetUp();
}

代码示例来源:origin: org.geotools/gt2-metadata

log.forceMonolineConsoleOutput();

代码示例来源:origin: org.geotools/gt-metadata

log.forceMonolineConsoleOutput();

相关文章