org.jdtaus.core.logging.spi.Logger.fatal()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(619)

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

Logger.fatal介绍

[英]Logs a message at log level fatal.
[中]在日志级别记录消息。

代码示例

代码示例来源:origin: org.jdtaus.editor/jdtaus-editor-client-application

  1. public void uncaughtException(final Thread t, final Throwable e)
  2. getLogger().fatal(e);
  3. String name = EditorBundle.getMissingInformationText(
  4. Locale.getDefault());

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

  1. /**
  2. * Test the various logger methods to not throw any exceptions.
  3. */
  4. public void testLog() throws Exception
  5. {
  6. assert this.getLogger() != null;
  7. this.getLogger().debug( "TEST" );
  8. this.getLogger().debug( new Exception() );
  9. this.getLogger().error( "TEST" );
  10. this.getLogger().error( new Exception() );
  11. this.getLogger().fatal( "TEST" );
  12. this.getLogger().fatal( new Exception() );
  13. this.getLogger().info( "TEST" );
  14. this.getLogger().info( new Exception() );
  15. this.getLogger().trace( "TEST" );
  16. this.getLogger().trace( new Exception() );
  17. this.getLogger().warn( "TEST" );
  18. this.getLogger().warn( new Exception() );
  19. }

相关文章