下載
軟體開發
帳戶
下載
軟體開發
登入
我忘記帳戶名和密碼了
新增帳戶
語言
手冊
語言
手冊
×
登入
登入名稱
密碼
×
我忘記帳戶名和密碼了
繁體中文翻譯狀態
類別:
軟體
人
PersonalForge
Magazine
Wiki
搜尋
OSDN
>
軟體搜索
>
Communications
>
UltraMonkey-L7
>
Wiki
>
LogLevelDebugJava
UltraMonkey-L7
Fork
ultramonkey-l7-v2
ultramonkeyl7-repo
log4cxx
ultramonkey-l7-mod-url
ultramonkey-l7-v3
sslproxy
l7gui
描述
專案概要
開發人員儀表板
專案的網頁
Developers
Image Gallery
List of RSS Feeds
活動
使用統計
歷史
檔案下載
發布列表
Stats
原始碼
儲存庫列表
Git
ultramonkey-l7-v2
ultramonkeyl7-repo
log4cxx
ultramonkey-l7-mod-url
ultramonkey-l7-v3
sslproxy
l7gui
待辦事項
待辦事項列表
里程碑列表
類型列表
元件列表
List of frequently used tickets/RSS
新增待辦事項
文檔
Wiki
FrontPage
Title index
Recent changes
Doc Mgr
List Docs
溝通
通信論壇列表
ultramonkey-l7-develop
ultramonkey-l7-rcs
ultramonkey-l7-users
新聞
edit
|
Title Index
|
Recent Changes
|
Editing LogLevelDebugJava
edit area height:
12
18
24
30
36
== Log Debug java == --- Debugで出力するLogは基本的に以下の情報を出力する。 * コンストラクタ時のメッセージ * 関数の入通知と引数のダンプ * 関数の出通知と返値のダンプ * servletの場合には受け取ったPOSTデータの値 以下必要な情報は随時追加 --- またdebugログを出力する場合は'''必ず現状のログレベルがdebugであることを確認し、出力するデータを作成する'''こと。 --- example. jsp {{{ code java <%@ page language="java" contentType="text/html; charset=ASCII" %> <%@ page import="org.apache.log4j*" %> <%@ page import="org.ultramonkey.l7.model.*" %> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset=ASCII"> <title>sample</title> <body> <% Logger logger = Logger.getLogger( LogCategorySet.JSPCategory ); if( logger.isDebugEnable() ){ logger.debug( "sample.jsp start" ); } SampleClass sampleClass = SampleClass.getInstance(); if( null == sampleClass ){ logger.error( "SampleClass.getInstance() is NULL!" ); } %> hello world! <% if( logger.isDebugEnable() ){ logger.debug( "sample.jsp exit" ); } %> </body> </html> }}} example class {{{ code java package org.ultramonkey.l7; import org.apache.log4j.*; public class Sample{ Logger logger = null; public Sample(){ logger = Logger.getInstance( LogCategorySet.SampleCategory ); if( logger.isDebugEnable() ){ logger.debug( "class Sample created." ); } } public String foo(Sample sample, String string) throws Exception { // debug log (in method) if( logger.isDebugEnable() ){ StringBuffer buf = new StringBuffer(); buf.append("Sample::foo(Sample sample, String string) throws Exception in "); buf.append("sample=" + sample + ", "); buf.append("string=" + string); logger.debug(buf.toString()); } if( null != sample ){ logger.error( "in sample value is null. check configure" ); } // debug log (out method) if( logger.isDebugEnable() ){ StringBuffer buf = new StringBuffer(); buf.append("Sample::foo(Sample sample, String string) throws Exception out "); buf.append("return=" + sample.toString + string); logger.debug(buf.toString()); } return sample.toString + string; } } }}} Pour participer Orange et garder votre numéro, vous aurez pu Bill propriétaire (necessaire à votre portabilité du numéro) [http://obtenir-rio.info rio bouygues]. Vous obtiendrez pour gratuit par appelant tonus de la voix du serveur ou du service à la clientèle satisfaction client du fournisseur de services [http://obtenir-rio.info/rio-bouygues numero rio bouygues] . Vous ne certainement acquérir un SMS avec vos . Avec votre propre [http://obtenir-rio.info/rio-orange rio orange], alors vous serez en mesure de vous abonner à l' offre de de votre choix respectifs lié à rouge.
Syntax Help
Comment about this change (optional):
You need to input post key "Astzwfe" to this box:
cancel
Attachments:
replace existing file of the same name
×
Insert Image
Loading...