ch.qos.logback.classic.Logger.error()方法的使用及代码示例

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

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

Logger.error介绍

暂无

代码示例

代码示例来源:origin: SonarSource/sonarqube

@Override
protected void doError(String msg, Object... args) {
 logback.error(msg, args);
}

代码示例来源:origin: SonarSource/sonarqube

@Override
protected void doError(String msg, Throwable thrown) {
 logback.error(msg, thrown);
}

代码示例来源:origin: SonarSource/sonarqube

@Override
protected void doError(String msg) {
 logback.error(msg);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(String msg, Throwable e) {
  logger.error(msg, e);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(String msg) {
  logger.error(msg);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(String msg) {
  logger.error(msg);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(String msg, Throwable e) {
  logger.error(msg, e);
}

代码示例来源:origin: SonarSource/sonarqube

@Override
protected void doError(String msg, @Nullable Object arg) {
 logback.error(msg, arg);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(Throwable e) {
  logger.error(e.getMessage(), e);
}

代码示例来源:origin: ltsopensource/light-task-scheduler

public void error(Throwable e) {
  logger.error(e.getMessage(), e);
}

代码示例来源:origin: SonarSource/sonarqube

@Override
protected void doError(String msg, @Nullable Object arg1, @Nullable Object arg2) {
 logback.error(msg, arg1, arg2);
}

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

public void run()
  {
    try
    {
      main.stopServices();
      s_shutdownObject.countDown();
    }
    catch (Exception e)
    {
      logger.error("Shutdown exception:", e);
    }
  }
}));

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

public void runImport(InputStream in) throws IOException, DatastoreException
{
  KairosDatastore ds = m_injector.getInstance(KairosDatastore.class);
  FilterEventBus eventBus = m_injector.getInstance(FilterEventBus.class);
  Publisher<DataPointEvent> publisher = eventBus.createPublisher(DataPointEvent.class);
  KairosDataPointFactory dpFactory = m_injector.getInstance(KairosDataPointFactory.class);
  BufferedReader reader = new BufferedReader(new InputStreamReader(in, UTF_8));
  Gson gson = new Gson();
  String line;
  while ((line = reader.readLine()) != null)
  {
    DataPointsParser dataPointsParser = new DataPointsParser(publisher, new StringReader(line),
        gson, dpFactory);
    ValidationErrors validationErrors = dataPointsParser.parse();
    for (String error : validationErrors.getErrors())
    {
      logger.error(error);
      System.err.println(error);
    }
  }
}

代码示例来源:origin: ch.qos.logback/logback-classic

hardenedLoggingEventInputStream = new HardenedLoggingEventInputStream(new BufferedInputStream(socket.getInputStream()));
} catch (Exception e) {
  logger.error("Could not open ObjectInputStream to " + socket, e);
  closed = true;
  logger.info("Closing connection.");
} catch (Exception e) {
  logger.error("Unexpected exception. Closing connection.", e);

代码示例来源:origin: ch.qos.logback/logback-classic

logger.info(this + ": " + ex);
} catch (ClassNotFoundException ex) {
  logger.error(this + ": unknown event class");
} catch (RuntimeException ex) {
  logger.error(this + ": " + ex);
} finally {
  if (ois != null) {

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

logger.error("Failed starting up services", e);
logger.error("Failed to startup", e);

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

public void stopServices() throws DatastoreException, InterruptedException
{
  logger.info("Shutting down");
  for (KairosDBService service : m_services)
  {
    String serviceName = service.getClass().getName();
    logger.info("Stopping " + serviceName);
    try
    {
      service.stop();
      logger.info("Stopped  " + serviceName);
    }
    catch (Exception e)
    {
      logger.error("Error stopping " + serviceName, e);
    }
  }
  logger.info("Stopping Datastore");
  //Stop the datastore
  KairosDatastore ds = m_injector.getInstance(KairosDatastore.class);
  ds.close();
  FilterEventBus eventBus = m_injector.getInstance(FilterEventBus.class);
  eventBus.createPublisher(ShutdownEvent.class).post(new ShutdownEvent());
}

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

logger.error("Unable to load service " + propName, e);

代码示例来源:origin: opentripplanner/OpenTripPlanner

this.timeouts = new double[]{timeout.doubleValue()};
  } else {
    LOG.error("The 'timeout' configuration option should be a number of seconds.");
    LOG.error("The 'timeouts' configuration option should be an array of values in seconds.");
  LOG.info("Computed ellipsoid/geoid offset at (" + lat + ", " + lon + ") as " + graph.ellipsoidToGeoidDifference);
} catch (Exception e) {
  LOG.error("Error computing ellipsoid/geoid difference");

代码示例来源:origin: camunda/camunda-bpm-platform

protected Object lookup(Context ctx, String name)
  throws NamingException {
 try {
  return ctx.lookup(name);
 } catch (NameNotFoundException e) {
  logger.error("Could not find name [" + name + "].");
  throw e;
 }
}

相关文章