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

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

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

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

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

/**
 * Test the various logger methods to not throw any exceptions.
 */
public void testLog() throws Exception
{
  assert this.getLogger() != null;
  this.getLogger().debug( "TEST" );
  this.getLogger().debug( new Exception() );
  this.getLogger().error( "TEST" );
  this.getLogger().error( new Exception() );
  this.getLogger().fatal( "TEST" );
  this.getLogger().fatal( new Exception() );
  this.getLogger().info( "TEST" );
  this.getLogger().info( new Exception() );
  this.getLogger().trace( "TEST" );
  this.getLogger().trace( new Exception() );
  this.getLogger().warn( "TEST" );
  this.getLogger().warn( new Exception() );
}

相关文章