|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
| 使用 Formatter 的軟體套件 | |
|---|---|
| java.util.logging | 提供 JavaTM 2 平臺核心日誌工具的類別和介面。 |
| java.util.logging 中 Formatter 的使用 |
|---|
| java.util.logging 中 Formatter 的子類別 | |
|---|---|
class |
SimpleFormatter
以可讀格式輸出 LogRecord 的簡單摘要。 |
class |
XMLFormatter
將 LogRecord 格式化為標準 XML 格式。 |
| 返回 Formatter 的 java.util.logging 中的方法 | |
|---|---|
Formatter |
Handler.getFormatter()
返回該 Handler 的 Formatter。 |
| 參數型別為 Formatter 的 java.util.logging 中的方法 | |
|---|---|
void |
Handler.setFormatter(Formatter newFormatter)
設置 Formatter。 |
| 參數型別為 Formatter 的 java.util.logging 中的建構子 | |
|---|---|
StreamHandler(OutputStream out,
Formatter formatter)
創建帶給定 Formatter 和輸出串流的 StreamHandler。 |
|
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。