Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


XMLFormatterjava.util.logging

Java 1.4

This Formatter
subclass converts a LogRecord to an XML-formatted
string. The format( ) method returns a
<record> element, which always contains
<date>, <millis>,
<sequence>, <level>
and <message> tags, and may also contain
<logger>, <class>,
<method>, <thread>,
<key>, <catalog>,
<param>, and
<exception> tags. See http://java.sun.com/dtd/logger.dtd for the
DTD of the output document.

The getHead( ) and getTail( )
methods are overridden to return opening and closing
<log> and </log>
tags to surround all output <record> tags.
Note however, that if an application terminates abnormally, the
logging facility may be unable to terminate the log file with the
closing <log> tag.


Figure 16-123. java.util.logging.XMLFormatter

public class

XMLFormatter extends java.util.logging.Formatter {
// Public Constructors
public

XMLFormatter ( );
// Public Methods Overriding Formatter
public String

format (LogRecord

record );
public String

getHead (Handler

h );
public String

getTail (Handler

h );
}



    / 1191