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

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

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

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

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

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

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

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

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

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

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

  1. @Override
  2. public void audit(String message) {
  3. getLogger((String) null).audit(message);
  4. }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章