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

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

?? simplelog.java

?? Jakarta小組開發(fā)的可集成在各種系統(tǒng)中的共用登入管理程序。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* * Copyright 2001-2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.logging.impl;import java.io.InputStream;import java.io.Serializable;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.security.AccessController;import java.security.PrivilegedAction;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Properties;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogConfigurationException;/** * <p>Simple implementation of Log that sends all enabled log messages, * for all defined loggers, to System.err.  The following system properties * are supported to configure the behavior of this logger:</p> * <ul> * <li><code>org.apache.commons.logging.simplelog.defaultlog</code> - *     Default logging detail level for all instances of SimpleLog. *     Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). *     If not specified, defaults to "info". </li> * <li><code>org.apache.commons.logging.simplelog.log.xxxxx</code> - *     Logging detail level for a SimpleLog instance named "xxxxx". *     Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). *     If not specified, the default logging detail level is used.</li> * <li><code>org.apache.commons.logging.simplelog.showlogname</code> - *     Set to <code>true</code> if you want the Log instance name to be *     included in output messages. Defaults to <code>false</code>.</li> * <li><code>org.apache.commons.logging.simplelog.showShortLogname</code> - *     Set to <code>true</code> if you want the last component of the name to be *     included in output messages. Defaults to <code>true</code>.</li> * <li><code>org.apache.commons.logging.simplelog.showdatetime</code> - *     Set to <code>true</code> if you want the current date and time *     to be included in output messages. Default is <code>false</code>.</li> * <li><code>org.apache.commons.logging.simplelog.dateTimeFormat</code> - *     The date and time format to be used in the output messages. *     The pattern describing the date and time format is the same that is *     used in <code>java.text.SimpleDateFormat</code>. If the format is not *     specified or is invalid, the default format is used. *     The default format is <code>yyyy/MM/dd HH:mm:ss:SSS zzz</code>.</li> * </ul> * * <p>In addition to looking for system properties with the names specified * above, this implementation also checks for a class loader resource named * <code>"simplelog.properties"</code>, and includes any matching definitions * from this resource (if it exists).</p> * * @author <a href="mailto:sanders@apache.org">Scott Sanders</a> * @author Rod Waldhoff * @author Robert Burrell Donkin * * @version $Id: SimpleLog.java,v 1.21 2004/06/06 20:47:56 rdonkin Exp $ */public class SimpleLog implements Log, Serializable {    // ------------------------------------------------------- Class Attributes    /** All system properties used by <code>SimpleLog</code> start with this */    static protected final String systemPrefix =        "org.apache.commons.logging.simplelog.";    /** Properties loaded from simplelog.properties */    static protected final Properties simpleLogProps = new Properties();    /** The default format to use when formating dates */    static protected final String DEFAULT_DATE_TIME_FORMAT =        "yyyy/MM/dd HH:mm:ss:SSS zzz";    /** Include the instance name in the log message? */    static protected boolean showLogName = false;    /** Include the short name ( last component ) of the logger in the log     *  message. Defaults to true - otherwise we'll be lost in a flood of     *  messages without knowing who sends them.     */    static protected boolean showShortName = true;    /** Include the current time in the log message */    static protected boolean showDateTime = false;    /** The date and time format to use in the log message */    static protected String dateTimeFormat = DEFAULT_DATE_TIME_FORMAT;    /** Used to format times */    static protected DateFormat dateFormatter = null;    // ---------------------------------------------------- Log Level Constants    /** "Trace" level logging. */    public static final int LOG_LEVEL_TRACE  = 1;    /** "Debug" level logging. */    public static final int LOG_LEVEL_DEBUG  = 2;    /** "Info" level logging. */    public static final int LOG_LEVEL_INFO   = 3;    /** "Warn" level logging. */    public static final int LOG_LEVEL_WARN   = 4;    /** "Error" level logging. */    public static final int LOG_LEVEL_ERROR  = 5;    /** "Fatal" level logging. */    public static final int LOG_LEVEL_FATAL  = 6;    /** Enable all logging levels */    public static final int LOG_LEVEL_ALL    = (LOG_LEVEL_TRACE - 1);    /** Enable no logging levels */    public static final int LOG_LEVEL_OFF    = (LOG_LEVEL_FATAL + 1);    // ------------------------------------------------------------ Initializer    private static String getStringProperty(String name) {        String prop = null;	try {	    prop = System.getProperty(name);	} catch (SecurityException e) {	    ; // Ignore	}        return (prop == null) ? simpleLogProps.getProperty(name) : prop;    }    private static String getStringProperty(String name, String dephault) {        String prop = getStringProperty(name);        return (prop == null) ? dephault : prop;    }    private static boolean getBooleanProperty(String name, boolean dephault) {        String prop = getStringProperty(name);        return (prop == null) ? dephault : "true".equalsIgnoreCase(prop);    }    // Initialize class attributes.    // Load properties file, if found.    // Override with system properties.    static {        // Add props from the resource simplelog.properties        InputStream in = getResourceAsStream("simplelog.properties");        if(null != in) {            try {                simpleLogProps.load(in);                in.close();            } catch(java.io.IOException e) {                // ignored            }        }        showLogName = getBooleanProperty( systemPrefix + "showlogname", showLogName);        showShortName = getBooleanProperty( systemPrefix + "showShortLogname", showShortName);        showDateTime = getBooleanProperty( systemPrefix + "showdatetime", showDateTime);        if(showDateTime) {            dateTimeFormat = getStringProperty(systemPrefix + "dateTimeFormat",                                               dateTimeFormat);            try {                dateFormatter = new SimpleDateFormat(dateTimeFormat);            } catch(IllegalArgumentException e) {                // If the format pattern is invalid - use the default format                dateTimeFormat = DEFAULT_DATE_TIME_FORMAT;                dateFormatter = new SimpleDateFormat(dateTimeFormat);            }        }    }    // ------------------------------------------------------------- Attributes    /** The name of this simple log instance */    protected String logName = null;    /** The current log level */    protected int currentLogLevel;    /** The short name of this simple log instance */    private String shortLogName = null;    // ------------------------------------------------------------ Constructor    /**     * Construct a simple log with given name.     *     * @param name log name     */    public SimpleLog(String name) {        logName = name;        // Set initial log level        // Used to be: set default log level to ERROR        // IMHO it should be lower, but at least info ( costin ).        setLevel(SimpleLog.LOG_LEVEL_INFO);        // Set log level from properties        String lvl = getStringProperty(systemPrefix + "log." + logName);        int i = String.valueOf(name).lastIndexOf(".");        while(null == lvl && i > -1) {            name = name.substring(0,i);            lvl = getStringProperty(systemPrefix + "log." + name);            i = String.valueOf(name).lastIndexOf(".");        }        if(null == lvl) {            lvl =  getStringProperty(systemPrefix + "defaultlog");        }        if("all".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_ALL);        } else if("trace".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_TRACE);        } else if("debug".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_DEBUG);        } else if("info".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_INFO);        } else if("warn".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_WARN);        } else if("error".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_ERROR);        } else if("fatal".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_FATAL);        } else if("off".equalsIgnoreCase(lvl)) {            setLevel(SimpleLog.LOG_LEVEL_OFF);        }    }    // -------------------------------------------------------- Properties    /**     * <p> Set logging level. </p>     *     * @param currentLogLevel new logging level     */    public void setLevel(int currentLogLevel) {        this.currentLogLevel = currentLogLevel;    }    /**     * <p> Get logging level. </p>     */    public int getLevel() {        return currentLogLevel;    }    // -------------------------------------------------------- Logging Methods    /**     * <p> Do the actual logging.     * This method assembles the message     * and then calls <code>write()</code> to cause it to be written.</p>     *     * @param type One of the LOG_LEVEL_XXX constants defining the log level     * @param message The message itself (typically a String)     * @param t The exception whose stack trace should be logged     */    protected void log(int type, Object message, Throwable t) {        // Use a string buffer for better performance        StringBuffer buf = new StringBuffer();        // Append date-time if so configured        if(showDateTime) {            buf.append(dateFormatter.format(new Date()));            buf.append(" ");        }        // Append a readable representation of the log level        switch(type) {            case SimpleLog.LOG_LEVEL_TRACE: buf.append("[TRACE] "); break;            case SimpleLog.LOG_LEVEL_DEBUG: buf.append("[DEBUG] "); break;            case SimpleLog.LOG_LEVEL_INFO:  buf.append("[INFO] ");  break;            case SimpleLog.LOG_LEVEL_WARN:  buf.append("[WARN] ");  break;            case SimpleLog.LOG_LEVEL_ERROR: buf.append("[ERROR] "); break;            case SimpleLog.LOG_LEVEL_FATAL: buf.append("[FATAL] "); break;        }        // Append the name of the log instance if so configured 	if( showShortName) {            if( shortLogName==null ) {                // Cut all but the last component of the name for both styles                shortLogName = logName.substring(logName.lastIndexOf(".") + 1);                shortLogName =                    shortLogName.substring(shortLogName.lastIndexOf("/") + 1);            }            buf.append(String.valueOf(shortLogName)).append(" - ");        } else if(showLogName) {            buf.append(String.valueOf(logName)).append(" - ");        }        // Append the message        buf.append(String.valueOf(message));        // Append stack trace if not null        if(t != null) {            buf.append(" <");            buf.append(t.toString());            buf.append(">");            java.io.StringWriter sw= new java.io.StringWriter(1024);            java.io.PrintWriter pw= new java.io.PrintWriter(sw);            t.printStackTrace(pw);            pw.close();            buf.append(sw.toString());        }        // Print to the appropriate destination        write(buf);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二三区| 欧美日韩aaaaaa| 韩国精品一区二区| 免费观看在线综合| 日韩精品电影一区亚洲| 天天综合网天天综合色| 综合久久给合久久狠狠狠97色| 久久久久免费观看| 久久久久久久一区| 国产色一区二区| 久久精品亚洲国产奇米99| 7799精品视频| 日韩一区二区在线看片| 91精品国产综合久久小美女| 91精品国产综合久久福利软件 | 午夜电影久久久| 亚洲综合在线五月| 一区二区三区四区激情 | 蜜臀av在线播放一区二区三区| 水蜜桃久久夜色精品一区的特点| 日欧美一区二区| 美女一区二区三区在线观看| 久久精品免费看| 国产自产高清不卡| 成人av资源网站| 一本到三区不卡视频| 欧美午夜精品一区| 欧美一级夜夜爽| 欧美激情综合网| 亚洲精品乱码久久久久| 日韩影视精彩在线| 国产在线精品视频| 91视频免费播放| 日本高清无吗v一区| 91精品一区二区三区久久久久久| 精品精品国产高清a毛片牛牛| 久久久噜噜噜久久中文字幕色伊伊 | 国产精品影视在线观看| 不卡电影免费在线播放一区| 色成年激情久久综合| 欧美一区三区四区| 久久久av毛片精品| 一区二区三区四区国产精品| 五月婷婷激情综合| 九九视频精品免费| av在线播放不卡| 欧美精品777| 中文成人综合网| 五月婷婷色综合| www.欧美亚洲| 欧美一卡2卡三卡4卡5免费| 国产精品区一区二区三| 肉色丝袜一区二区| 成人午夜av影视| 91精品视频网| 综合欧美一区二区三区| 久久99精品久久久久久国产越南| 99精品视频在线观看免费| 欧美一级夜夜爽| 亚洲精品国产无天堂网2021| 麻豆成人久久精品二区三区红 | 欧美偷拍一区二区| 日本一区二区三区免费乱视频| 亚洲福利视频一区二区| 国产盗摄一区二区三区| 欧美日韩激情在线| 成人avav影音| 精品黑人一区二区三区久久 | 91麻豆免费视频| 精品99久久久久久| 亚洲不卡在线观看| 成人ar影院免费观看视频| 欧美成人aa大片| 亚洲成人免费电影| 99久久婷婷国产综合精品电影| 在线播放日韩导航| 一区二区久久久久久| 国产不卡视频一区二区三区| 这里只有精品视频在线观看| 久久色在线视频| 亚洲动漫第一页| 在线视频国内自拍亚洲视频| 国产精品国产三级国产aⅴ入口 | 欧美mv日韩mv国产| 亚洲成a人片综合在线| 91一区二区在线观看| 欧美经典一区二区| 国内精品国产成人国产三级粉色| 91麻豆精品国产91| 日日摸夜夜添夜夜添国产精品| 在线观看亚洲精品| 亚洲免费av高清| 91美女视频网站| 国产精品婷婷午夜在线观看| 国内精品自线一区二区三区视频| 91精品久久久久久蜜臀| 亚洲aaa精品| 欧美精品三级日韩久久| 亚洲第四色夜色| 欧美日韩在线综合| 午夜在线成人av| 欧美日韩高清影院| 婷婷中文字幕综合| 8x8x8国产精品| 久久精品国产色蜜蜜麻豆| 884aa四虎影成人精品一区| 亚洲国产综合视频在线观看| 欧美日韩国产在线观看| 亚洲一区二区三区四区在线观看 | 欧美男生操女生| 一区二区三区.www| 日本韩国欧美国产| 一二三区精品福利视频| 欧美性受极品xxxx喷水| 亚洲国产精品一区二区www在线| 91久久国产最好的精华液| 亚洲精品视频在线看| 99久久777色| 一区二区高清免费观看影视大全| 欧美日韩中文另类| 日韩在线一二三区| 久久夜色精品国产噜噜av| 国产成人综合在线观看| 中文字幕一区二区三区在线观看 | 91.com在线观看| 精品一区二区三区在线播放 | 亚洲精品国产a| 欧美日韩一区二区三区四区 | 欧美性大战久久久久久久| 亚洲成人精品在线观看| 日韩午夜激情视频| 国产精品自在在线| 亚洲男同1069视频| 欧美欧美欧美欧美| 国产精品亚洲视频| 一区二区在线免费观看| 91精品国产aⅴ一区二区| 国产原创一区二区三区| 国产精品成人午夜| 欧美日韩一区二区三区四区五区| 久久99国产精品麻豆| 久久综合狠狠综合久久综合88| 亚洲国产精品成人久久综合一区| 精品免费国产一区二区三区四区| 欧洲精品在线观看| 在线免费不卡电影| 欧美主播一区二区三区美女| 欧美久久久久免费| 国产在线视视频有精品| 亚洲视频小说图片| 日韩三级视频在线看| 成人高清免费在线播放| 日韩理论片网站| 日韩欧美的一区| 91色乱码一区二区三区| 免费观看91视频大全| 亚洲精品写真福利| 日韩免费电影一区| 成av人片一区二区| 日本美女一区二区| 国产精品美女久久久久久久网站| 日本大香伊一区二区三区| 久久国产精品露脸对白| 亚洲天堂网中文字| 欧美tk—视频vk| 91久久精品网| 成人精品一区二区三区四区| 免费一级片91| 一区二区三区免费看视频| 久久久不卡影院| 日韩精品最新网址| 欧美在线视频全部完| 懂色av一区二区三区蜜臀| 蜜臀av一区二区在线免费观看| 1024亚洲合集| 国产日产亚洲精品系列| 555夜色666亚洲国产免| 一本色道久久综合亚洲aⅴ蜜桃| 韩国精品久久久| 日韩国产精品久久久久久亚洲| 国产精品久久久久久久岛一牛影视 | 欧美成人免费网站| 欧美视频在线观看一区| 成人午夜在线视频| 韩国三级在线一区| 捆绑调教美女网站视频一区| 亚洲成人动漫精品| 亚洲国产精品影院| 一区二区三区色| 亚洲欧美区自拍先锋| 国产精品女同互慰在线看| 久久综合九色综合久久久精品综合| 欧美日韩国产综合视频在线观看| 色婷婷综合久久久久中文一区二区| 国产成人免费在线视频| 国模大尺度一区二区三区| 美女看a上一区| 日本一不卡视频| 日日嗨av一区二区三区四区| 午夜欧美2019年伦理|