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

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

?? ttcclayout.java

?? apache的log4j源碼
?? JAVA
字號:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */// Contributors: Christopher Williams//               Mathias Bogaertpackage org.apache.log4j;import org.apache.log4j.helpers.DateLayout;import org.apache.log4j.spi.LoggingEvent;/** TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name. <p>Each of the four fields can be individually enabled or disabled. The time format depends on the <code>DateFormat</code> used. <p>Here is an example TTCCLayout output with the {@link org.apache.log4j.helpers.RelativeTimeDateFormat}. <pre>176 [main] INFO  org.apache.log4j.examples.Sort - Populating an array of 2 elements in reverse order.225 [main] INFO  org.apache.log4j.examples.SortAlgo - Entered the sort method.262 [main] DEBUG org.apache.log4j.examples.SortAlgo.OUTER i=1 - Outer loop.276 [main] DEBUG org.apache.log4j.examples.SortAlgo.SWAP i=1 j=0 - Swapping intArray[0] = 1 and intArray[1] = 0290 [main] DEBUG org.apache.log4j.examples.SortAlgo.OUTER i=0 - Outer loop.304 [main] INFO  org.apache.log4j.examples.SortAlgo.DUMP - Dump of interger array:317 [main] INFO  org.apache.log4j.examples.SortAlgo.DUMP - Element [0] = 0331 [main] INFO  org.apache.log4j.examples.SortAlgo.DUMP - Element [1] = 1343 [main] INFO  org.apache.log4j.examples.Sort - The next log statement should be an error message.346 [main] ERROR org.apache.log4j.examples.SortAlgo.DUMP - Tried to dump an uninitialized array.        at org.apache.log4j.examples.SortAlgo.dump(SortAlgo.java:58)        at org.apache.log4j.examples.Sort.main(Sort.java:64)467 [main] INFO  org.apache.log4j.examples.Sort - Exiting main method.</pre>  <p>The first field is the number of milliseconds elapsed since the  start of the program. The second field is the thread outputting the  log statement. The third field is the level, the fourth field is  the category to which the statement belongs.  <p>The fifth field (just before the '-') is the nested diagnostic  context.  Note the nested diagnostic context may be empty as in the  first two statements. The text after the '-' is the message of the  statement.  <p><b>WARNING</b> Do not use the same TTCCLayout instance from  within different appenders. The TTCCLayout is not thread safe when  used in his way. However, it is perfectly safe to use a TTCCLayout  instance from just one appender.  <p>{@link PatternLayout} offers a much more flexible alternative.  @author Ceki G&uuml;lc&uuml;  @author <A HREF="mailto:heinz.richter@ecmwf.int">Heinz Richter</a>*/public class TTCCLayout extends DateLayout {  // Internal representation of options  private boolean threadPrinting    = true;  private boolean categoryPrefixing = true;  private boolean contextPrinting   = true;  protected final StringBuffer buf = new StringBuffer(256);  /**     Instantiate a TTCCLayout object with {@link     org.apache.log4j.helpers.RelativeTimeDateFormat} as the date     formatter in the local time zone.     @since 0.7.5 */  public TTCCLayout() {    this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null);  }  /**     Instantiate a TTCCLayout object using the local time zone. The     DateFormat used will depend on the <code>dateFormatType</code>.     <p>This constructor just calls the {@link     DateLayout#setDateFormat} method.     */  public TTCCLayout(String dateFormatType) {    this.setDateFormat(dateFormatType);  }  /**     The <b>ThreadPrinting</b> option specifies whether the name of the     current thread is part of log output or not. This is true by default.   */  public  void setThreadPrinting(boolean threadPrinting) {    this.threadPrinting = threadPrinting;  }  /**     Returns value of the <b>ThreadPrinting</b> option.   */  public  boolean getThreadPrinting() {    return threadPrinting;  }  /**     The <b>CategoryPrefixing</b> option specifies whether {@link Category}     name is part of log output or not. This is true by default.   */  public  void setCategoryPrefixing(boolean categoryPrefixing) {    this.categoryPrefixing = categoryPrefixing;  }  /**     Returns value of the <b>CategoryPrefixing</b> option.   */  public  boolean getCategoryPrefixing() {    return categoryPrefixing;  }  /**     The <b>ContextPrinting</b> option specifies log output will include     the nested context information belonging to the current thread.     This is true by default.   */  public  void setContextPrinting(boolean contextPrinting) {    this.contextPrinting = contextPrinting;  }  /**     Returns value of the <b>ContextPrinting</b> option.   */  public  boolean getContextPrinting() {    return contextPrinting;  }  /**   In addition to the level of the statement and message, the   returned byte array includes time, thread, category and {@link NDC}   information.   <p>Time, thread, category and diagnostic context are printed   depending on options.    @param event The event to format  */  public  String format(LoggingEvent event) {    // Reset buf    buf.setLength(0);    dateFormat(buf, event);    if(this.threadPrinting) {      buf.append('[');      buf.append(event.getThreadName());      buf.append("] ");    }    buf.append(event.getLevel().toString());    buf.append(' ');    if(this.categoryPrefixing) {      buf.append(event.getLoggerName());      buf.append(' ');    }    if(this.contextPrinting) {       String ndc = event.getNDC();      if(ndc != null) {	buf.append(ndc);	buf.append(' ');      }    }    buf.append("- ");    buf.append(event.getRenderedMessage());    buf.append(LINE_SEP);    return buf.toString();  } /**     The TTCCLayout does not handle the throwable contained within     {@link LoggingEvent LoggingEvents}. Thus, it returns     <code>true</code>.     @since version 0.8.4 */  public  boolean ignoresThrowable() {    return true;  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美的一区二区| 欧美精品视频www在线观看| 大胆亚洲人体视频| 色婷婷久久久久swag精品| 99视频一区二区三区| 欧美中文一区二区三区| 日韩欧美不卡在线观看视频| 精品理论电影在线观看 | 在线欧美日韩精品| 91精品国产日韩91久久久久久| 久久久噜噜噜久久人人看| 中文字幕在线免费不卡| 亚洲成人av中文| 大桥未久av一区二区三区中文| 91捆绑美女网站| 久久在线观看免费| 亚洲国产你懂的| 成人18视频日本| 国产亚洲精久久久久久| 亚洲不卡在线观看| 91视视频在线观看入口直接观看www | 91蜜桃免费观看视频| 久久综合九色综合97婷婷| 亚洲成人免费观看| 在线免费观看成人短视频| 国产精品久久久久久久久晋中| 九一久久久久久| 欧美日本不卡视频| 一区二区三区四区激情| jiyouzz国产精品久久| 欧美不卡123| 国产精品资源在线| 国产亚洲欧洲一区高清在线观看| 日本美女一区二区| 精品免费国产二区三区| 成人永久免费视频| 国产精品剧情在线亚洲| 成人动漫一区二区| 亚洲精品成人a在线观看| 色久综合一二码| 日韩电影在线观看电影| 日韩亚洲欧美在线| 国模无码大尺度一区二区三区| 国产亚洲欧美激情| 91香蕉视频黄| 五月天激情综合| 国产欧美一区二区三区鸳鸯浴| www.在线成人| 亚洲成人av资源| 中文字幕欧美日韩一区| 欧美欧美午夜aⅴ在线观看| 另类小说色综合网站| 国产精品国产三级国产普通话三级 | 欧美日韩高清影院| 成人听书哪个软件好| 亚洲成在人线免费| 国产婷婷色一区二区三区四区| 在线观看视频一区二区欧美日韩| 日韩电影在线一区二区| 中文字幕色av一区二区三区| 日韩一区二区三区免费看| 99视频一区二区| 韩国v欧美v亚洲v日本v| 午夜精品一区二区三区免费视频 | 激情综合网激情| 视频一区二区三区入口| 亚洲色图欧美激情| 国产拍欧美日韩视频二区| 日韩一区二区三区在线视频| 91搞黄在线观看| 91麻豆国产在线观看| 高清不卡一区二区| 国产精品99久| 国产伦精品一区二区三区在线观看| 亚洲1区2区3区4区| 天堂一区二区在线免费观看| 亚洲一区在线看| 亚洲高清免费视频| 精品国产乱码久久久久久闺蜜| 韩国av一区二区三区四区| 亚洲一区二区三区爽爽爽爽爽| 国产精品女同一区二区三区| 国产清纯白嫩初高生在线观看91 | 91免费看视频| 欧美在线一区二区三区| 色94色欧美sute亚洲13| 欧美日韩久久一区| 久久久久久亚洲综合影院红桃 | 99视频在线观看一区三区| 成人动漫一区二区三区| 欧美日韩欧美一区二区| 精品国产制服丝袜高跟| 久久人人爽人人爽| 亚洲免费电影在线| 美女诱惑一区二区| av一区二区三区四区| 欧美精品日韩一区| 中文字幕一区二区三区视频| 亚洲一区二区在线免费看| 久久精品久久精品| 欧美日韩一区 二区 三区 久久精品| 欧美美女黄视频| 国产精品天天看| 美女网站一区二区| 欧美网站大全在线观看| 国产亚洲人成网站| 石原莉奈在线亚洲三区| 99精品久久免费看蜜臀剧情介绍| 日韩欧美国产高清| 亚洲国产精品视频| 成人黄色小视频| 欧美白人最猛性xxxxx69交| 国产精品护士白丝一区av| 久久66热re国产| 欧美剧情电影在线观看完整版免费励志电影 | 国产精品国产馆在线真实露脸| 午夜激情久久久| 色综合久久中文字幕| 日本一区二区三级电影在线观看| 美脚の诱脚舐め脚责91| 欧美一级黄色大片| 日韩专区一卡二卡| 欧美人妇做爰xxxⅹ性高电影 | 欧美日本在线播放| 丝袜美腿亚洲一区| 3d动漫精品啪啪一区二区竹菊 | 久久无码av三级| 国产69精品一区二区亚洲孕妇| 欧美一区二区三区影视| 色哟哟亚洲精品| 亚洲国产精品精华液网站| 色狠狠桃花综合| 亚洲国产视频一区| 欧美一区二区三区免费视频| 伦理电影国产精品| 精品国产一区二区亚洲人成毛片| 精品一区二区三区不卡 | 99re视频精品| 亚洲成人av免费| 欧美成人精品1314www| www.av精品| 夜夜嗨av一区二区三区| 日韩欧美中文一区| 99久久婷婷国产综合精品| 亚洲电影欧美电影有声小说| 26uuu精品一区二区| 日本精品裸体写真集在线观看| 久久爱www久久做| 亚洲最大成人网4388xx| 日韩一区二区精品在线观看| av一二三不卡影片| 久久99国产精品尤物| 亚洲精品菠萝久久久久久久| 欧美精品一区男女天堂| 欧洲国内综合视频| 国产suv精品一区二区883| 久久国产乱子精品免费女| 亚洲精选免费视频| 亚洲欧洲日产国码二区| 久久亚洲综合av| 日韩免费性生活视频播放| 欧美精品v日韩精品v韩国精品v| 欧美最猛性xxxxx直播| 91婷婷韩国欧美一区二区| 成人app网站| av爱爱亚洲一区| 成人综合激情网| 成人永久免费视频| 9人人澡人人爽人人精品| 福利一区福利二区| 成人在线视频一区二区| 成人高清免费在线播放| 91尤物视频在线观看| 色吧成人激情小说| 欧美日韩亚洲综合在线 | www.欧美亚洲| 色呦呦国产精品| 在线一区二区三区| 欧美中文字幕久久| 日韩一区二区在线播放| 久久亚洲综合色| 国产精品理论在线观看| 亚洲免费av观看| 免费人成精品欧美精品| 成人免费视频免费观看| 色偷偷88欧美精品久久久| 91成人在线精品| 日韩欧美国产精品一区| 成人欧美一区二区三区小说| 亚洲激情网站免费观看| 国产真实乱子伦精品视频| 97久久精品人人做人人爽| 欧美视频中文字幕| 国产日韩欧美亚洲| 一区二区三区日韩欧美| 麻豆成人91精品二区三区| 色噜噜狠狠成人中文综合 | 日韩精品1区2区3区| 成人av在线播放网址| 日韩视频免费观看高清在线视频|