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

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

?? simplelog.java

?? Jakarta小組開發(fā)的可集成在各種系統(tǒng)中的共用登入管理程序。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * 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
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品私人自拍| 欧美日韩精品欧美日韩精品一综合| 欧美一区二区福利在线| 日精品一区二区三区| 日韩一级高清毛片| 九一九一国产精品| 久久精品欧美日韩| 成人丝袜高跟foot| 一区二区三区国产豹纹内裤在线| 欧美亚洲国产一区在线观看网站| 丝袜诱惑制服诱惑色一区在线观看 | 91麻豆精品国产自产在线观看一区 | 日韩中文字幕91| 欧美www视频| 粉嫩绯色av一区二区在线观看| 日本一区二区三区久久久久久久久不 | 日一区二区三区| 欧美精品vⅰdeose4hd| 免费观看成人鲁鲁鲁鲁鲁视频| 精品1区2区在线观看| 不卡视频免费播放| 亚洲成人第一页| 精品福利av导航| 成人美女视频在线看| 亚洲国产成人91porn| 精品日产卡一卡二卡麻豆| 国产成人免费视频网站 | 91精品国产综合久久福利| 看国产成人h片视频| 中文字幕精品三区| 欧美日韩国产首页| 成人在线综合网站| 午夜电影一区二区三区| 国产欧美综合色| 欧美疯狂做受xxxx富婆| 不卡一区二区三区四区| 丝袜亚洲另类欧美| 国产精品久久久久久亚洲伦| 欧美高清视频在线高清观看mv色露露十八 | 久久久久九九视频| 欧美日韩综合不卡| 成人在线综合网站| 日本不卡一区二区三区 | 欧美绝品在线观看成人午夜影视| 国产乱理伦片在线观看夜一区| 亚洲一级二级三级在线免费观看| 国产性做久久久久久| 这里只有精品99re| 色狠狠色噜噜噜综合网| 国产乱码精品一区二区三| 天堂av在线一区| 悠悠色在线精品| 国产视频一区二区在线观看| 欧美一区二区三区在线视频| 色婷婷精品久久二区二区蜜臀av| 国产电影一区在线| 蜜桃视频第一区免费观看| 亚洲综合成人在线视频| 亚洲丝袜制服诱惑| 中文字幕精品在线不卡| 久久久久久久电影| 欧美成人综合网站| 欧美一区二区人人喊爽| 在线一区二区三区| 91社区在线播放| av网站免费线看精品| 国产成人在线视频免费播放| 久久99精品久久久久久国产越南 | 国产精品女同一区二区三区| 精品国产区一区| 91精品国产综合久久久久| 欧美午夜片在线看| 欧美无人高清视频在线观看| 色综合天天视频在线观看| 成人综合婷婷国产精品久久蜜臀 | 在线观看免费视频综合| 91色在线porny| 99久久精品情趣| 成人黄色在线网站| 成人综合婷婷国产精品久久免费| 国产一区二区三区在线观看精品| 久久国产免费看| 国内外成人在线| 国产精品一二三四区| 国产电影精品久久禁18| 成人av中文字幕| 91同城在线观看| 色综合视频在线观看| 欧美亚洲免费在线一区| 91麻豆精品91久久久久久清纯| 欧美日韩成人在线一区| 色视频一区二区| 欧美亚洲一区三区| 91精品免费观看| 日韩欧美一区中文| 久久美女高清视频 | 中文字幕一区日韩精品欧美| 亚洲欧美怡红院| 亚洲国产精品自拍| 美女视频一区在线观看| 欧美人妇做爰xxxⅹ性高电影| 欧美日韩综合一区| 精品国产成人在线影院| 国产欧美1区2区3区| 一区二区在线看| 日本中文在线一区| 国产一区 二区 三区一级| 99天天综合性| 成人h精品动漫一区二区三区| 色综合久久综合网| 91精品国产综合久久久久久久久久| 26uuu国产在线精品一区二区| 中文字幕乱码一区二区免费| 亚洲一区二区综合| 国产做a爰片久久毛片 | 欧美亚洲日本一区| 精品日韩一区二区三区| 亚洲视频在线一区| 久久精品噜噜噜成人av农村| caoporn国产精品| 717成人午夜免费福利电影| 国产香蕉久久精品综合网| 伊人开心综合网| 国产精品一区一区| 在线视频一区二区免费| 精品美女在线播放| 亚洲综合色自拍一区| 国产伦精品一区二区三区在线观看| 91蜜桃网址入口| www久久精品| 亚洲aⅴ怡春院| eeuss影院一区二区三区| 欧美日韩一区二区三区免费看| 久久天堂av综合合色蜜桃网| 亚洲宅男天堂在线观看无病毒| 国产麻豆视频一区| 91精品视频网| 亚洲欧洲日本在线| 国产在线精品视频| 欧美精品久久久久久久多人混战 | 国产在线精品国自产拍免费| 欧美视频精品在线观看| 国产精品色哟哟网站| 免费成人av资源网| 欧美亚洲一区二区在线| 一区精品在线播放| 国产成人精品免费一区二区| 日韩一区二区免费在线电影| 亚洲一区欧美一区| 色94色欧美sute亚洲线路一ni| 国产欧美一区二区精品秋霞影院| 日本va欧美va欧美va精品| 欧美性受xxxx黑人xyx| 最新久久zyz资源站| 国产成人综合在线观看| 欧美卡1卡2卡| 天天色天天爱天天射综合| 欧美成人精品3d动漫h| 日韩精品一卡二卡三卡四卡无卡| 91福利视频在线| 亚洲三级免费观看| bt欧美亚洲午夜电影天堂| 久久精品欧美一区二区三区不卡 | 奇米四色…亚洲| 欧美日韩美少妇| 亚洲一区二区三区四区在线| 91色视频在线| 亚洲一区在线观看网站| 欧洲亚洲国产日韩| 亚洲综合另类小说| 欧美三级欧美一级| 亚洲一区二区在线观看视频| 欧美在线免费观看视频| 一区二区三区在线看| 色94色欧美sute亚洲线路一久| 亚洲一区二区免费视频| 欧美日韩久久久久久| 日本欧美一区二区三区| 精品久久久久香蕉网| 国产精品123区| 欧美激情综合五月色丁香| av中文字幕亚洲| 亚洲精品精品亚洲| 欧美吞精做爰啪啪高潮| 日韩精品乱码av一区二区| 在线播放欧美女士性生活| 精品一区二区三区免费播放 | 日本一区二区免费在线观看视频 | 日韩电影网1区2区| 日韩精品一区二区三区蜜臀| 国产麻豆精品视频| 国产精品国产三级国产普通话三级| va亚洲va日韩不卡在线观看| 一区二区三区在线观看网站| 5858s免费视频成人| 精品一区二区精品| 国产精品视频看| 欧美亚洲愉拍一区二区| 久久国产视频网| 亚洲视频在线一区二区|