org.eclipse.equinox.log.Logger类的使用及代码示例

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

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

Logger介绍

[英]Provides named logger support for the OSGi LogService. Otherwise very similar to the LogService.
[中]为OSGi LogService提供命名记录器支持。在其他方面与LogService非常相似。

代码示例

代码示例来源:origin: org.eclipse.core/runtime

/**
 * Logs the given status.  The status is distributed to the log listeners
 * installed on this log and then to the log listeners installed on the platform.
 *
 * @see Plugin#getLog()
 */
public void log(final IStatus status) {
  // Log to the logger
  logger.log(PlatformLogWriter.getLog(status), PlatformLogWriter.getLevel(status), status.getMessage(), status.getException());
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

public String getName() {
  return getLogger((String) null).getName();
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

public boolean isLoggable(int level) {
  return getLogger(null).isLoggable(level);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

@Override
public void debug(String format, Object arg) {
  getLogger((String) null).debug(format, arg);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

@Override
public void audit(String message) {
  getLogger((String) null).audit(message);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

@Override
public void debug(String format, Object arg1, Object arg2) {
  getLogger((String) null).debug(format, arg1, arg2);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

@Override
public void audit(String format, Object... arguments) {
  getLogger((String) null).audit(format, arguments);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

@SuppressWarnings("rawtypes")
public void log(ServiceReference sr, int level, String message, Throwable exception) {
  getLogger(null).log(sr, level, message, exception);
}

代码示例来源:origin: com.github.veithen.cosmos/cosmos-equinox

public boolean isLoggable(int level) {
  return getLogger(null).isLoggable(level);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

public String getName() {
  return getLogger((String) null).getName();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

@Override
public void debug(String format, Object... arguments) {
  getLogger((String) null).debug(format, arguments);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi

@Override
public void audit(String format, Object arg) {
  getLogger((String) null).audit(format, arg);
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

@SuppressWarnings("rawtypes")
public void log(ServiceReference sr, int level, String message, Throwable exception) {
  getLogger(null).log(sr, level, message, exception);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.osgi

public boolean isLoggable(int level) {
  return getLogger(null).isLoggable(level);
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

public String getName() {
  return getLogger(null).getName();
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

@Override
public void debug(String format, Object... arguments) {
  getLogger((String) null).debug(format, arguments);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

@Override
public void audit(String format, Object arg1, Object arg2) {
  getLogger((String) null).audit(format, arg1, arg2);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.osgi

public void log(Object context, int level, String message, Throwable exception) {
  getLogger((String) null).log(context, level, message, exception);
}

代码示例来源:origin: org.eclipse/osgi

public boolean isLoggable(int level) {
  return getLogger(null).isLoggable(level);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.osgi

public String getName() {
  return getLogger(null).getName();
}

相关文章