MemoryHandler是一个缓冲记忆体中。 : 日志 « 日志 « Java 教程

En
Java 教程
1. 语言基础
2. 数据类型
3. 操作符
4. 流程控制
5. 类定义
6. 开发相关
7. 反射
8. 正则表达式
9. 集合
10. 线
11. 文件
12. 泛型
13. 本土化
14. Swing
15. Swing事件
16. 二维图形
17. SWT
18. SWT 二维图形
19. 网络
20. 数据库
21. Hibernate
22. JPA
23. JSP
24. JSTL
25. Servlet
26. Web服务SOA
27. EJB3
28. Spring
29. PDF
30. 电子邮件
31. 基于J2ME
32. J2EE应用
33. XML
34. 设计模式
35. 日志
36. 安全
37. Apache工具
38. 蚂蚁编译
39. JUnit单元测试
Java
Java 教程 » 日志 » 日志 
35. 1. 9. MemoryHandler是一个缓冲记忆体中。

The MemoryHandler is intended for use as a quick way to store messages.

The messages have to be sent to another handler to write them to an external source. Because the buffer is circular, older log records eventually are overwritten by newer records.

The properties on the MemoryHandler are listed in the following table.

Property NameDescriptionDefault Value
MemoryHandler.levelLog level for the handlerLevel.INFO
MemoryHandler.filterFilter to useundefined
MemoryHandler.sizeSize of the circular buffer (in bytes)1,000
MemoryHandler.pushDefines the push level — the minimum level that will cause messages to be sent to the target handlerLevel.SEVERE
MemoryHandler.targetSpecifies the name of the target Handler class(undefined)


35. 1. 日志
35. 1. 1. A full list of levels.
35. 1. 2. 日志方法调用
35. 1. 3. 日志异常
35. 1. 4. The StreamHandler serves chiefly as a base class for all handlers that write log messages to some OutputStream.
35. 1. 5. 写日志ConsoleHandler到System.err 。
35. 1. 6. The SocketHandler writes log messages to the network over a specified TCP port.
35. 1. 7. The FileHandler is able to write to a single file, or write to a rotating set of files as each file reaches a specified maximum size.
35. 1. 8. FileHandler类支持文件模式。
35. 1. 9. MemoryHandler是一个缓冲记忆体中。
35. 1. 10. ErrorManager演示
35. 1. 11. 信息记录
35. 1. 12. 写日志到文件
35. 1. 13. 适当的类和方法名
35. 1. 14. Preventing a Logger from Forwarding Log Records to Its Parent
www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.