Descargar
Desarrollar
Cuenta
Descargar
Desarrollar
Entrar
Forgot Account/Password
Crear Cuenta
Idioma
Ayuda
Idioma
Ayuda
×
Entrar
Nombre de usuario
Contraseña
×
Forgot Account/Password
Translation Status of Español
Categoría:
Software
Gente
PersonalForge
Magazine
Wiki
Buscar
OSDN
>
Buscar Software
>
Communications
>
UltraMonkey-L7
>
Wiki
>
LogLevelDebugJava
UltraMonkey-L7
Fork
ultramonkey-l7-v2
ultramonkeyl7-repo
log4cxx
ultramonkey-l7-mod-url
ultramonkey-l7-v3
sslproxy
l7gui
Descripción
Project Summary
Developer Dashboard
Página Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Historial
Descargas
List of Releases
Stats
Código Fuente
Code Repository list
Git
ultramonkey-l7-v2
ultramonkeyl7-repo
log4cxx
ultramonkey-l7-mod-url
ultramonkey-l7-v3
sslproxy
l7gui
Incidencia
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
Wiki
FrontPage
Title index
Recent changes
Doc Mgr
List Docs
Communication
list of ML
ultramonkey-l7-develop
ultramonkey-l7-rcs
ultramonkey-l7-users
Noticias
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 "Asu88cu" to this box:
cancel
Attachments:
replace existing file of the same name
×
Insert Image
Loading...