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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? simplelogger.java

?? Java開發最新的日志記錄工具slf4j的源碼
?? JAVA
字號:
/*
 * Copyright (c) 2004-2005 SLF4J.ORG
 * Copyright (c) 2004-2005 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, and/or sell copies of  the Software, and to permit persons
 * to whom  the Software is furnished  to do so, provided  that the above
 * copyright notice(s) and this permission notice appear in all copies of
 * the  Software and  that both  the above  copyright notice(s)  and this
 * permission notice appear in supporting documentation.
 *
 * 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
 * OF  THIRD PARTY  RIGHTS. IN  NO EVENT  SHALL THE  COPYRIGHT  HOLDER OR
 * HOLDERS  INCLUDED IN  THIS  NOTICE BE  LIABLE  FOR ANY  CLAIM, OR  ANY
 * SPECIAL INDIRECT  OR CONSEQUENTIAL DAMAGES, OR  ANY DAMAGES WHATSOEVER
 * RESULTING FROM LOSS  OF USE, DATA OR PROFITS, WHETHER  IN AN ACTION OF
 * CONTRACT, NEGLIGENCE  OR OTHER TORTIOUS  ACTION, ARISING OUT OF  OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 * Except as  contained in  this notice, the  name of a  copyright holder
 * shall not be used in advertising or otherwise to promote the sale, use
 * or other dealings in this Software without prior written authorization
 * of the copyright holder.
 *
 */

package org.slf4j.impl;

import org.slf4j.helpers.MarkerIgnoringBase;
import org.slf4j.helpers.MessageFormatter;

/**
 * A simple (and direct) implementation that logs messages of level
 * INFO or higher on the console (<code>System.err<code>).
 *
 * <p>The output includes the relative time in milliseconds, thread
 * name, the level, logger name, and the message followed by the line
 * separator for the host.  In log4j terms it amounts to the "%r [%t]
 * %level %logger - %m%n" pattern. </p>
 *
 * <p>Sample output follows.</p>
<pre>
176 [main] INFO examples.Sort - Populating an array of 2 elements in reverse order.
225 [main] INFO examples.SortAlgo - Entered the sort method.
304 [main] INFO examples.SortAlgo - Dump of integer array:
317 [main] INFO examples.SortAlgo - Element [0] = 0
331 [main] INFO examples.SortAlgo - Element [1] = 1
343 [main] INFO examples.Sort - The next log statement should be an error message.
346 [main] ERROR examples.SortAlgo - Tried to dump an uninitialized array.
        at org.log4j.examples.SortAlgo.dump(SortAlgo.java:58)
        at org.log4j.examples.Sort.main(Sort.java:64)
467 [main] INFO  examples.Sort - Exiting main method.
</pre>
 *
 * @author Ceki G&uuml;lc&uuml;
 */
public class SimpleLogger extends MarkerIgnoringBase {
  
  private static final long serialVersionUID = -6560244151660620173L;
 
  /**
   * Mark the time when this class gets loaded into memory.
   */
  private static long startTime = System.currentTimeMillis();
  public static final String LINE_SEPARATOR =
    System.getProperty("line.separator");
  private static String INFO_STR = "INFO";
  private static String WARN_STR = "WARN";
  private static String ERROR_STR = "ERROR";

  /**
   * Package access allows only {@link SimpleLoggerFactory} to instantiate
   * SimpleLogger instances.
   */
  SimpleLogger(String name) {
    this.name = name;
  }

  /**
   * Always returns false.
   * @return always false
   */
  public boolean isTraceEnabled() {
    return false;
  }

  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the TRACE level.
   */
  public void trace(String msg) {
    // NOP
  }

  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the TRACE level.
   */
  public void trace(String format, Object param1) {
    // NOP
  }

  
  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the TRACE level.
   */
  public void trace(String format, Object param1, Object param2) {
    // NOP
  }

  public void trace(String format, Object[] argArray) {
    // NOP
  }
  
  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the TRACE level.
   */
  public void trace(String msg, Throwable t) {
    // NOP
  }

  
  /**
   * Always returns false.
   * @return always false
   */
  public boolean isDebugEnabled() {
    return false;
  }

  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the DEBUG level.
   */
  public void debug(String msg) {
    // NOP
  }

  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the DEBUG level.
   */
  public void debug(String format, Object param1) {
    // NOP
  }

  
  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the DEBUG level.
   */
  public void debug(String format, Object param1, Object param2) {
    // NOP
  }

  public void debug(String format, Object[] argArray) {
    // NOP
  }
  
  /**
   * A NOP implementation, as this logger is permanently disabled for
   * the DEBUG level.
   */
  public void debug(String msg, Throwable t) {
    // NOP
  }

  /**
   * This is our internal implementation for logging regular (non-parameterized)
   * log messages.
   *
   * @param level
   * @param message
   * @param t
   */
  private void log(String level, String message, Throwable t) {
    StringBuffer buf = new StringBuffer();

    long millis = System.currentTimeMillis();
    buf.append(millis - startTime);

    buf.append(" [");
    buf.append(Thread.currentThread().getName());
    buf.append("] ");

    buf.append(level);
    buf.append(" ");

    buf.append(name);
    buf.append(" - ");

    buf.append(message);

    buf.append(LINE_SEPARATOR);

    System.err.print(buf.toString());
    if (t != null) {
      t.printStackTrace(System.err);
    }
    System.err.flush();
  }

  /**
   * For formatted messages, first substitute arguments and then log.
   *
   * @param level
   * @param format
   * @param param1
   * @param param2
   */
  private void formatAndLog(
    String level, String format, Object arg1, Object arg2) {
    String message = MessageFormatter.format(format, arg1, arg2);
    log(level, message, null);
  }
  
  /**
   * For formatted messages, first substitute arguments and then log.
   * 
   * @param level
   * @param format
   * @param argArray
   */
  private void formatAndLog(String level, String format, Object[] argArray) {
    String message = MessageFormatter.arrayFormat(format, argArray);
    log(level, message, null);
  }

  /**
   * Always returns true.
   */
  public boolean isInfoEnabled() {
    return true;
  }

  /**
   * A simple implementation which always logs messages of level INFO according
   * to the format outlined above.
   */
  public void info(String msg) {
    log(INFO_STR, msg, null);
  }

  /**
   * Perform single parameter substitution before logging the message of level
   * INFO according to the format outlined above.
   */
  public void info(String format, Object arg) {
    formatAndLog(INFO_STR, format, arg, null);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * INFO according to the format outlined above.
   */
  public void info(String format, Object arg1, Object arg2) {
    formatAndLog(INFO_STR, format, arg1, arg2);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * INFO according to the format outlined above.
   */
  public void info(String format, Object[] argArray) {
    formatAndLog(INFO_STR, format, argArray);
  }


  /**
   * Log a message of level INFO, including an exception.
   */
  public void info(String msg, Throwable t) {
    log(INFO_STR, msg, t);
  }

  /**
   * Always returns true.
   */
  public boolean isWarnEnabled() {
    return true;
  }
  
  /**
   * A simple implementation which always logs messages of level WARN according
   * to the format outlined above.
  */
  public void warn(String msg) {
    log(WARN_STR, msg, null);
  }

  /**
   * Perform single parameter substitution before logging the message of level
   * WARN according to the format outlined above.
   */
  public void warn(String format, Object arg) {
    formatAndLog(WARN_STR, format, arg, null);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * WARN according to the format outlined above.
   */
  public void warn(String format, Object arg1, Object arg2) {
    formatAndLog(WARN_STR, format, arg1, arg2);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * WARN according to the format outlined above.
   */
  public void warn(String format, Object[] argArray) {
    formatAndLog(WARN_STR, format, argArray);
  }

  /**
   * Log a message of level WARN, including an exception.
   */
  public void warn(String msg, Throwable t) {
    log(WARN_STR, msg, t);
  }

  /**
   * Always returns true.
   */
  public boolean isErrorEnabled() {
    return true;
  }

  /**
   * A simple implementation which always logs messages of level ERROR according
   * to the format outlined above.
   */
  public void error(String msg) {
    log(ERROR_STR, msg, null);
  }

  /**
   * Perform single parameter substitution before logging the message of level
   * ERROR according to the format outlined above.
   */
  public void error(String format, Object arg) {
    formatAndLog(ERROR_STR, format, arg, null);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * ERROR according to the format outlined above.
   */
  public void error(String format, Object arg1, Object arg2) {
    formatAndLog(ERROR_STR, format, arg1, arg2);
  }

  /**
   * Perform double parameter substitution before logging the message of level
   * ERROR according to the format outlined above.
   */
  public void error(String format, Object[] argArray) {
    formatAndLog(ERROR_STR, format, argArray);
  }

  
  /**
   * Log a message of level ERROR, including an exception.
   */
  public void error(String msg, Throwable t) {
    log(ERROR_STR, msg, t);
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩小视频在线观看专区| 丝袜诱惑制服诱惑色一区在线观看| 麻豆中文一区二区| 欧美日韩国产系列| 亚洲一二三四在线观看| 3d动漫精品啪啪1区2区免费| 亚洲综合一区二区精品导航| 精品视频在线免费观看| 日韩精品亚洲一区| 日韩视频一区二区| 国产自产视频一区二区三区| 91精品免费观看| 麻豆精品视频在线观看免费| 日韩免费电影一区| 国产尤物一区二区在线| 国产精品久久精品日日| 国产成a人亚洲| 国产精品剧情在线亚洲| 国产成人亚洲综合a∨婷婷图片| 欧美国产综合色视频| 成人精品电影在线观看| 亚洲欧美日韩国产综合| 欧美做爰猛烈大尺度电影无法无天| 亚洲一区日韩精品中文字幕| 欧美精品久久久久久久多人混战| 中文字幕一区二区三| 在线欧美小视频| 日韩不卡在线观看日韩不卡视频| 精品久久人人做人人爱| 91丨九色丨国产丨porny| 亚洲在线观看免费| 欧美一区二区三区在线| 亚洲在线一区二区三区| 日韩精品一区二区三区中文不卡| 国产电影一区在线| 亚洲综合自拍偷拍| 久久久噜噜噜久噜久久综合| 99精品欧美一区二区三区综合在线| 亚洲激情男女视频| 欧美日韩一区高清| 久久精品国产亚洲aⅴ| 日韩一区二区高清| 国产999精品久久| 香港成人在线视频| 国产精品视频第一区| 欧美色涩在线第一页| 国产乱对白刺激视频不卡| 亚洲美女淫视频| 中文字幕的久久| 91精品国产综合久久香蕉麻豆| 国产精品中文字幕欧美| 亚洲人成电影网站色mp4| 欧美一区二区三区电影| 成人久久视频在线观看| 日本91福利区| 亚洲乱码国产乱码精品精98午夜| 日韩欧美在线网站| 色欧美88888久久久久久影院| 日本亚洲最大的色成网站www| 中文字幕一区日韩精品欧美| 日韩欧美激情在线| 色视频欧美一区二区三区| 视频在线在亚洲| 国产精品福利在线播放| 日韩视频永久免费| 欧美三级电影在线看| 99精品视频在线观看| 国产在线播放一区三区四| 久久99精品国产麻豆不卡| 成人免费一区二区三区视频 | 日韩视频在线一区二区| 成人aaaa免费全部观看| 激情图片小说一区| 日本欧美一区二区在线观看| 婷婷成人激情在线网| 亚洲欧美一区二区在线观看| 久久久久免费观看| 国产亚洲精品免费| 精品国产污污免费网站入口| 欧美久久久久久久久| 欧美丰满少妇xxxxx高潮对白| 色欧美日韩亚洲| 国产福利视频一区二区三区| 亚洲人吸女人奶水| 欧美一卡二卡在线| 蜜桃视频在线观看一区| 亚洲女同一区二区| 日韩三级伦理片妻子的秘密按摩| 91猫先生在线| 国内精品写真在线观看| 国产精品久久久久一区| 波多野洁衣一区| 日韩一区二区在线看| 99久久精品免费看国产| 国产综合色产在线精品| 国产一区视频在线看| 麻豆免费精品视频| 九九久久精品视频| 精品一区二区免费在线观看| 天堂午夜影视日韩欧美一区二区| 亚洲成在线观看| 五月婷婷激情综合| 日精品一区二区| 蜜芽一区二区三区| 精品一区二区三区免费毛片爱| 蜜臀精品一区二区三区在线观看 | 91国偷自产一区二区开放时间| 国产一区二区三区电影在线观看| 亚洲18女电影在线观看| 久久精品国产第一区二区三区| 亚洲成人资源网| 亚洲激情五月婷婷| 视频一区二区三区中文字幕| 日韩精品电影一区亚洲| 激情综合色综合久久| 国产成人综合亚洲网站| 在线一区二区视频| 在线综合视频播放| 久久久精品天堂| 亚洲成人自拍网| 久久精品国产99国产精品| 国产精品99久久久久| 洋洋成人永久网站入口| 国产在线精品不卡| 一本色道综合亚洲| 91精品婷婷国产综合久久性色| 国产精品久久久久久久久图文区| 亚洲综合偷拍欧美一区色| 日韩电影在线观看一区| 91网上在线视频| 日韩一级黄色大片| 国产日韩欧美不卡在线| 亚洲欧美日韩中文播放| 欧美sm极限捆绑bd| 日韩午夜在线影院| 亚洲欧美综合色| 国产尤物一区二区| 欧美丰满一区二区免费视频| 中文字幕在线观看一区二区| 麻豆传媒一区二区三区| 欧美午夜免费电影| 一区免费观看视频| 国产精品99久久久| 欧美一级欧美三级| 午夜激情久久久| 色婷婷激情久久| 亚洲视频免费观看| www.日韩精品| 中文字幕国产一区| 国产成人免费xxxxxxxx| 日韩一区二区免费电影| 视频一区欧美日韩| 欧美撒尿777hd撒尿| 亚洲综合一二区| 色综合中文字幕国产| 精品国产sm最大网站| 日韩电影免费在线| 欧美精品日韩综合在线| 亚洲福利一二三区| 色婷婷久久一区二区三区麻豆| 亚洲欧洲一区二区在线播放| 国产精品一二三四区| 久久久国产一区二区三区四区小说 | 亚洲黄色av一区| 91亚洲男人天堂| 中文字幕一区二区三区不卡 | 久久午夜国产精品| 九九精品视频在线看| 精品国产乱码久久久久久1区2区| 日产国产高清一区二区三区| 3d动漫精品啪啪1区2区免费| 日韩高清不卡一区二区三区| 欧美一区二区三区四区高清| 成人av网站免费观看| 国产日产精品一区| 成人国产精品免费网站| 亚洲美女在线国产| 欧美日韩电影在线| 日本免费新一区视频| 久久综合九色综合欧美就去吻| 国产v日产∨综合v精品视频| 亚洲欧洲日产国码二区| 91免费精品国自产拍在线不卡| 一区二区三区在线观看欧美| 欧美日韩一二三| 麻豆免费看一区二区三区| 久久综合久久综合亚洲| 成人激情视频网站| 一区二区三区不卡视频| 欧美一区二区三区影视| 国产精品一二一区| 一区二区三区日韩欧美| 欧美日产国产精品| 国产一区二三区| 中文字幕在线免费不卡| 欧美精品在线观看一区二区| 国产一区中文字幕| 一级做a爱片久久| 日韩女优毛片在线| 91免费国产视频网站|