亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jclloggeradapter.java

?? Java開發(fā)最新的日志記錄工具slf4j的源碼
?? JAVA
字號:
/* 
 * Copyright (c) 2004-2008 QOS.ch
 * All rights reserved.
 * 
 * Permission is hereby granted, free  of charge, to any person obtaining
 * a  copy  of this  software  and  associated  documentation files  (the
 * "Software"), to  deal in  the Software without  restriction, including
 * without limitation  the rights to  use, copy, modify,  merge, publish,
 * distribute,  sublicense, and/or sell  copies of  the Software,  and to
 * permit persons to whom the Software  is furnished to do so, subject to
 * the following conditions:
 * 
 * The  above  copyright  notice  and  this permission  notice  shall  be
 * included in all copies or substantial portions of the Software.
 * 
 * THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
 * EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
 * MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


package org.slf4j.impl;

import org.apache.commons.logging.Log;
import org.slf4j.Logger;
import org.slf4j.helpers.MarkerIgnoringBase;
import org.slf4j.helpers.MessageFormatter;

/**
 * A wrapper over {@link org.apache.commons.logging.Log
 * org.apache.commons.logging.Log} in conformance with the {@link Logger}
 * interface.
 * 
 * @author Ceki Gülcü
 */
public final class JCLLoggerAdapter extends MarkerIgnoringBase {

  private static final long serialVersionUID = 4141593417490482209L;
  final Log log;
  
  // WARN: JCLLoggerAdapter constructor should have only package access so
  // that only JCLLoggerFactory be able to create one.
  JCLLoggerAdapter(Log log, String name) {
    this.log = log;
    this.name = name;
  }

  /**
   * Delegates to the {@link Log#isTraceEnabled} method of the underlying
   * {@link Log} instance. 
   */
  public boolean isTraceEnabled() {
    return log.isTraceEnabled();
  }

  //

  /**
   * Delegates to the {@link Log#trace(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * @param msg - the message object to be logged
   */
  public void trace(String msg) {
    log.trace(msg);
  }

  /**
   * Delegates to the {@link Log#trace(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level TRACE.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg
   *          the argument
   */
  public void trace(String format, Object arg) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.format(format, arg);
      log.trace(msgStr);
    }
  }

  /**
   * Delegates to the {@link Log#trace(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level TRACE.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg1
   *          the first argument
   * @param arg2
   *          the second argument
   */
  public void trace(String format, Object arg1, Object arg2) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.format(format, arg1, arg2);
      log.trace(msgStr);
    }
  }
  

  /**
   * Delegates to the {@link Log#trace(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level TRACE.
   * </p>
   * 
   * @param format the format string
   * @param argArray an array of arguments
   */
  public void trace(String format, Object[] argArray) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.arrayFormat(format, argArray);
      log.trace(msgStr);
    }
  }
  
  /**
   * Delegates to the {@link Log#trace(java.lang.Object, java.lang.Throwable)} method of 
   * the underlying {@link Log} instance.
   * 
   * @param msg
   *          the message accompanying the exception
   * @param t
   *          the exception (throwable) to log
   */
  public void trace(String msg, Throwable t) {
      log.trace(msg, t);
  }

  
  /**
   * Delegates to the {@link Log#isDebugEnabled} method of the underlying
   * {@link Log} instance. 
   */
  public boolean isDebugEnabled() {
    return log.isDebugEnabled();
  }

  //

  /**
   * Delegates to the {@link Log#debug(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * @param msg - the message object to be logged
   */
  public void debug(String msg) {
    log.debug(msg);
  }

  /**
   * Delegates to the {@link Log#debug(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level DEBUG.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg
   *          the argument
   */
  public void debug(String format, Object arg) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.format(format, arg);
      log.debug(msgStr);
    }
  }

  /**
   * Delegates to the {@link Log#debug(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level DEBUG.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg1
   *          the first argument
   * @param arg2
   *          the second argument
   */
  public void debug(String format, Object arg1, Object arg2) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.format(format, arg1, arg2);
      log.debug(msgStr);
    }
  }
  

  /**
   * Delegates to the {@link Log#debug(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level DEBUG.
   * </p>
   * 
   * @param format the format string
   * @param argArray an array of arguments
   */
  public void debug(String format, Object[] argArray) {
    if (log.isDebugEnabled()) {
      String msgStr = MessageFormatter.arrayFormat(format, argArray);
      log.debug(msgStr);
    }
  }
  
  /**
   * Delegates to the {@link Log#debug(java.lang.Object, java.lang.Throwable)} method of 
   * the underlying {@link Log} instance.
   * 
   * @param msg
   *          the message accompanying the exception
   * @param t
   *          the exception (throwable) to log
   */
  public void debug(String msg, Throwable t) {
      log.debug(msg, t);
  }

  /**
   * Delegates to the {@link Log#isInfoEnabled} method of the underlying
   * {@link Log} instance. 
   */
  public boolean isInfoEnabled() {
    return log.isInfoEnabled();
  }

  /**
   * Delegates to the {@link Log#debug(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * @param msg - the message object to be logged
   */
  public void info(String msg) {
    log.info(msg);
  }

  /**
   * Delegates to the {@link Log#info(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level INFO.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg
   *          the argument
   */

  public void info(String format, Object arg) {
    if (log.isInfoEnabled()) {
      String msgStr = MessageFormatter.format(format, arg);
      log.info(msgStr);
    }
  }
  /**
   * Delegates to the {@link Log#info(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level INFO.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg1
   *          the first argument
   * @param arg2
   *          the second argument
   */
  public void info(String format, Object arg1, Object arg2) {
    if (log.isInfoEnabled()) {
      String msgStr = MessageFormatter.format(format, arg1, arg2);
      log.info(msgStr);
    }
  }

  /**
   * Delegates to the {@link Log#info(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level INFO.
   * </p>
   * 
   * @param format the format string
   * @param argArray an array of arguments
   */
  public void info(String format, Object[] argArray) {
    if (log.isInfoEnabled()) {
      String msgStr = MessageFormatter.arrayFormat(format, argArray);
      log.info(msgStr);
    }
  }
  
  
  /**
   * Delegates to the {@link Log#info(java.lang.Object, java.lang.Throwable)} method of 
   * the underlying {@link Log} instance.
   * 
   * @param msg
   *          the message accompanying the exception
   * @param t
   *          the exception (throwable) to log
   */
  public void info(String msg, Throwable t) {
    log.info(msg, t);
  }

  /**
   * Delegates to the {@link Log#isWarnEnabled} method of the underlying
   * {@link Log} instance. 
   */
  public boolean isWarnEnabled() {
    return log.isWarnEnabled();
  }

  /**
   * Delegates to the {@link Log#warn(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * @param msg - the message object to be logged
   */
  public void warn(String msg) {
    log.warn(msg);
  }

  /**
   * Delegates to the {@link Log#warn(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level WARN.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg
   *          the argument
   */
  public void warn(String format, Object arg) {
    if (log.isWarnEnabled()) {
      String msgStr = MessageFormatter.format(format, arg);
      log.warn(msgStr);
    }
  }
  
  /**
   * Delegates to the {@link Log#warn(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level WARN.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg1
   *          the first argument
   * @param arg2
   *          the second argument
   */
  public void warn(String format, Object arg1, Object arg2) {
    if (log.isWarnEnabled()) {
      String msgStr = MessageFormatter.format(format, arg1, arg2);
      log.warn(msgStr);
    }
  }
  
  /**
   * Delegates to the {@link Log#warn(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level WARN.
   * </p>
   * 
   * @param format the format string
   * @param argArray an array of arguments
   */
  public void warn(String format, Object[] argArray) {
    if (log.isWarnEnabled()) {
      String msgStr = MessageFormatter.arrayFormat(format, argArray);
      log.warn(msgStr);
    }
  }
  

  /**
   * Delegates to the {@link Log#warn(java.lang.Object, java.lang.Throwable)} method of 
   * the underlying {@link Log} instance.
   * 
   * @param msg
   *          the message accompanying the exception
   * @param t
   *          the exception (throwable) to log
   */
  
  public void warn(String msg, Throwable t) {
    log.warn(msg, t);
  }


  /**
   * Delegates to the {@link Log#isErrorEnabled} method of the underlying
   * {@link Log} instance. 
   */
  public boolean isErrorEnabled() {
    return log.isErrorEnabled();
  }

  /**
   * Delegates to the {@link Log#error(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * @param msg - the message object to be logged
   */
  public void error(String msg) {
    log.error(msg);
  }

  /**
   * Delegates to the {@link Log#error(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level ERROR.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg
   *          the argument
   */
  public void error(String format, Object arg) {
    if (log.isErrorEnabled()) {
      String msgStr = MessageFormatter.format(format, arg);
      log.error(msgStr);
    }
  }
  
  /**
   * Delegates to the {@link Log#error(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level ERROR.
   * </p>
   * 
   * @param format
   *          the format string
   * @param arg1
   *          the first argument
   * @param arg2
   *          the second argument
   */
  public void error(String format, Object arg1, Object arg2) {
    if (log.isErrorEnabled()) {
      String msgStr = MessageFormatter.format(format, arg1, arg2);
      log.error(msgStr);
    }
  }

  /**
   * Delegates to the {@link Log#error(java.lang.Object)} method of the underlying
   * {@link Log} instance.
   * 
   * <p>
   * However, this form avoids superfluous object creation when the logger is disabled
   * for level ERROR.
   * </p>
   * 
   * @param format the format string
   * @param argArray an array of arguments
   */
  public void error(String format, Object[] argArray) {
    if (log.isErrorEnabled()) {
      String msgStr = MessageFormatter.arrayFormat(format, argArray);
      log.error(msgStr);
    }
  }
  
  
  /**
   * Delegates to the {@link Log#error(java.lang.Object, java.lang.Throwable)} method of 
   * the underlying {@link Log} instance.
   * 
   * @param msg
   *          the message accompanying the exception
   * @param t
   *          the exception (throwable) to log
   */
  
  public void error(String msg, Throwable t) {
    log.error(msg, t);
  }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人激情av| 精品伦理精品一区| 一区二区三区国产豹纹内裤在线| 成人丝袜视频网| 国产精品私人影院| 99久久久免费精品国产一区二区| **网站欧美大片在线观看| 色婷婷综合久久久久中文| 亚洲精选视频在线| 欧美日韩国产免费| 一本到三区不卡视频| 一区二区日韩电影| 欧美一级久久久| 国产精品综合一区二区三区| 中文字幕在线一区| 欧美电影一区二区| 国产一区二区三区精品视频| 亚洲人成伊人成综合网小说| 欧美巨大另类极品videosbest | 不卡视频一二三| 有码一区二区三区| 欧美第一区第二区| 成人h版在线观看| 日精品一区二区| 国产精品天干天干在观线| 欧美日韩色一区| 国产精品99久久久久久有的能看 | 国产精品一区一区| 亚洲黄色在线视频| 久久天堂av综合合色蜜桃网| 91美女在线观看| 老司机精品视频在线| 国产精品对白交换视频| 在线播放91灌醉迷j高跟美女 | 欧美午夜寂寞影院| 激情成人综合网| 亚洲国产精品嫩草影院| 久久久777精品电影网影网| 一本一道综合狠狠老| 九九**精品视频免费播放| 亚洲欧美一区二区三区国产精品| 欧美精品v日韩精品v韩国精品v| 成人免费看黄yyy456| 午夜天堂影视香蕉久久| 亚洲欧洲色图综合| 久久众筹精品私拍模特| 欧美精品国产精品| 色综合久久久久网| 成人av小说网| 国精产品一区一区三区mba视频| 午夜精品福利在线| 一区2区3区在线看| 欧美国产日韩在线观看| 日韩免费观看高清完整版在线观看| 91美女视频网站| 成人av在线资源网站| 欧美精品第一页| 欧美在线短视频| jlzzjlzz亚洲日本少妇| 激情小说欧美图片| 美女网站色91| 日韩精品电影在线观看| 亚洲高清不卡在线| 亚洲精品国产a| 亚洲免费观看视频| 亚洲精品视频免费看| 国产精品国产自产拍在线| 欧美国产精品一区二区三区| 久久色在线视频| 久久久亚洲午夜电影| 精品日本一线二线三线不卡| 欧美一区二区三区免费在线看| 欧美在线免费播放| 在线看不卡av| 91国产视频在线观看| 色94色欧美sute亚洲线路一久| av激情综合网| 欧洲一区在线观看| 91免费国产在线观看| 在线视频亚洲一区| 欧美猛男男办公室激情| 宅男噜噜噜66一区二区66| 欧美一区二区三区系列电影| 欧美一二三区在线观看| 欧美精品一区二区三区蜜桃| 久久精子c满五个校花| 中文字幕乱码久久午夜不卡| 日韩美女精品在线| 亚洲成人自拍偷拍| 视频一区二区欧美| 久久er99热精品一区二区| 国产一二三精品| 高清在线成人网| 91啪在线观看| 欧美日韩黄色影视| 日韩午夜三级在线| 欧美激情一区三区| 亚洲免费观看在线观看| 天天影视色香欲综合网老头| 麻豆国产一区二区| 成人激情av网| 欧美日韩国产综合久久| 91精品在线免费| 国产三级一区二区三区| 亚洲乱码一区二区三区在线观看| 亚洲国产cao| 国产美女视频91| 一本久久a久久免费精品不卡| 91精品国产91久久久久久最新毛片| 精品三级在线看| 国产精品高清亚洲| 免费成人你懂的| 99re6这里只有精品视频在线观看| 欧美日韩一区中文字幕| 欧美成人video| 一区二区三区四区在线| 精品无码三级在线观看视频| 91丨九色丨尤物| 欧美成人女星排名| 亚洲免费成人av| 国产精品一线二线三线| 日本韩国欧美国产| 国产亚洲精品精华液| 一区二区视频免费在线观看| 国产精品一线二线三线精华| 欧美性xxxxxxxx| 欧美国产一区在线| 免费成人美女在线观看| 99精品欧美一区二区蜜桃免费 | 国产精品久久久久久亚洲毛片| 亚洲 欧美综合在线网络| 国产福利精品一区| 91精品欧美福利在线观看| 中文字幕亚洲欧美在线不卡| 久久国产尿小便嘘嘘尿| 欧美天堂一区二区三区| 国产亚洲精品aa| 日韩av电影免费观看高清完整版| 成人av午夜电影| 久久久久久久综合狠狠综合| 首页国产欧美日韩丝袜| 色综合久久久久综合体桃花网| 久久久精品免费观看| 青青草伊人久久| 欧美日韩国产精品自在自线| 国产精品国产三级国产普通话三级| 男女激情视频一区| 欧美性猛片aaaaaaa做受| 日韩码欧中文字| eeuss国产一区二区三区| 久久亚洲精品小早川怜子| 免费人成在线不卡| 欧美一区二区三区的| 亚洲国产精品久久久男人的天堂| 97超碰欧美中文字幕| 国产精品灌醉下药二区| 成人丝袜18视频在线观看| 久久久久久日产精品| 久久精品国产一区二区| 欧美一区二区三区视频在线观看| 亚洲成人久久影院| 欧美日韩一区成人| 亚洲最新在线观看| 在线观看免费亚洲| 一区二区三区视频在线观看| 一本色道久久综合亚洲91| 一区二区三区四区国产精品| 在线看日本不卡| 午夜视黄欧洲亚洲| 欧美一级免费观看| 久久激情五月激情| 久久久久97国产精华液好用吗| 国产一区二区精品久久91| 国产午夜精品一区二区三区视频 | 中国av一区二区三区| 成人午夜精品在线| 亚洲人成网站在线| 日本韩国欧美一区| 舔着乳尖日韩一区| 日韩欧美一二三四区| 国产一本一道久久香蕉| 国产情人综合久久777777| 99久久国产综合精品色伊| 夜夜夜精品看看| 日韩三级.com| 国产精品一二三四区| 中文字幕一区免费在线观看 | 欧美亚洲综合在线| 日本伊人色综合网| 久久久噜噜噜久久人人看| 懂色av中文字幕一区二区三区 | 欧美剧情电影在线观看完整版免费励志电影| 爽好多水快深点欧美视频| www久久久久| 色女孩综合影院| 日韩高清不卡在线| 欧美激情综合在线| 精品视频在线免费看| 经典三级在线一区| 国产精品初高中害羞小美女文|