org.boon.Logger.warn()方法的使用及代码示例

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

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

Logger.warn介绍

暂无

代码示例

代码示例来源:origin: boonproject/boon

  1. public void handleSQLException(SQLException ex) {
  2. SQLException next = ex.getNextException();
  3. while (next != null) {
  4. logger.warn(next, "BasyMySQLSupport Nested SQL Exception", next.getMessage());
  5. next = ex.getNextException();
  6. }
  7. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Handles an Exception.
  3. * @param ex
  4. */
  5. public void handleSQLException(SQLException ex) {
  6. SQLException next = ex.getNextException();
  7. while (next != null) {
  8. logger.warn(next, "BasyMySQLSupport Nested SQL Exception", next.getMessage());
  9. next = ex.getNextException();
  10. }
  11. }

代码示例来源:origin: boonproject/boon

  1. public void handleSQLException(SQLException ex) {
  2. SQLException next = ex.getNextException();
  3. while (next != null) {
  4. logger.warn(next, "BasyMySQLSupport Nested SQL Exception", next.getMessage());
  5. next = ex.getNextException();
  6. }
  7. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Handles an Exception.
  3. * @param ex
  4. */
  5. public void handleSQLException(SQLException ex) {
  6. SQLException next = ex.getNextException();
  7. while (next != null) {
  8. logger.warn(next, "BasyMySQLSupport Nested SQL Exception", next.getMessage());
  9. next = ex.getNextException();
  10. }
  11. }

代码示例来源:origin: boonproject/boon

  1. private void initIfNeeded() {
  2. if (closed) {
  3. logger.warn("closed detected, reopening connection");
  4. initDB();
  5. }
  6. }

代码示例来源:origin: boonproject/boon

  1. private void initIfNeeded() {
  2. if (closed) {
  3. logger.warn("closed detected, reopening connection");
  4. initDB();
  5. }
  6. }

代码示例来源:origin: boonproject/boon

  1. private void initIfNeeded() {
  2. if (closed) {
  3. logger.warn("closed detected, reopening connection");
  4. initDB();
  5. }
  6. }

代码示例来源:origin: boonproject/boon

  1. private void initIfNeeded() {
  2. if (closed) {
  3. logger.warn("closed detected, reopening connection");
  4. initDB();
  5. }
  6. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Like puts but for warn logging.
  3. *
  4. * @param messages messages to write.
  5. */
  6. public static void warn(Object... messages) {
  7. _log().warn(messages);
  8. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Like puts but for warn exception logging.
  3. *
  4. * @param t throwable
  5. * @param messages messages to write.
  6. */
  7. public static void warn(Throwable t, Object... messages) {
  8. _log().warn(t, messages);
  9. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Like puts but for warn logging.
  3. *
  4. * @param messages messages to write.
  5. */
  6. public static void warn(Object... messages) {
  7. _log().warn(messages);
  8. }

代码示例来源:origin: boonproject/boon

  1. /**
  2. * Like puts but for warn exception logging.
  3. *
  4. * @param t throwable
  5. * @param messages messages to write.
  6. */
  7. public static void warn(Throwable t, Object... messages) {
  8. _log().warn(t, messages);
  9. }

代码示例来源:origin: io.fastjson/boon

  1. /**
  2. * Like puts but for warn exception logging.
  3. *
  4. * @param t throwable
  5. * @param messages messages to write.
  6. */
  7. public static void warn(Throwable t, Object... messages) {
  8. _log().warn(t, messages);
  9. }

代码示例来源:origin: boonproject/boon

  1. public IOReader reader(Reader in) {
  2. try {
  3. close();
  4. } catch (IOException e) {
  5. Boon.logger("IO").warn(e.getMessage(), e);
  6. }
  7. this.reader = in;
  8. return this;
  9. }

代码示例来源:origin: boonproject/boon

  1. public IOReader reader(Reader in) {
  2. try {
  3. close();
  4. } catch (IOException e) {
  5. Boon.logger("IO").warn(e.getMessage(), e);
  6. }
  7. this.reader = in;
  8. return this;
  9. }

代码示例来源:origin: boonproject/boon

  1. public IOInputStream input(InputStream in) {
  2. try {
  3. close();
  4. } catch (IOException e) {
  5. Boon.logger("IO").warn(e.getMessage(), e);
  6. }
  7. this.inputStream = in;
  8. return this;
  9. }

代码示例来源:origin: boonproject/boon

  1. public IOInputStream input(InputStream in) {
  2. try {
  3. close();
  4. } catch (IOException e) {
  5. Boon.logger("IO").warn(e.getMessage(), e);
  6. }
  7. this.inputStream = in;
  8. return this;
  9. }

代码示例来源:origin: io.fastjson/boon

  1. public IOReader reader(Reader in) {
  2. try {
  3. close();
  4. } catch (IOException e) {
  5. Boon.logger("IO").warn(e.getMessage(), e);
  6. }
  7. this.reader = in;
  8. return this;
  9. }

代码示例来源:origin: boonproject/boon

  1. protected void handle(String message, SQLException sqlException) {
  2. totalErrors++;
  3. if (debug) handleSQLException(sqlException);
  4. try {
  5. close();
  6. } catch (Exception ex) {
  7. logger.warn(ex, "Problem closing connection after sql exception\n", sqlException);
  8. }
  9. Exceptions.handle(message, sqlException);
  10. }

代码示例来源:origin: boonproject/boon

  1. protected void handle(String message, SQLException sqlException) {
  2. totalErrors++;
  3. if (debug) handleSQLException(sqlException);
  4. try {
  5. close();
  6. } catch (Exception ex) {
  7. logger.warn(ex, "Problem closing connection after sql exception\n", sqlException);
  8. }
  9. Exceptions.handle(message, sqlException);
  10. }

相关文章