java.util.logging

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Apache Harmony Java SE » java package » java.util.logging 
java.util.logging
Java Source File NameTypeComment
ConsoleHandler.javaClass A handler that writes log messages to the standard output stream System.err .
ErrorManager.javaClass An error reporting facility for Handler implementations to record any error that may happen during logging.
FileHandler.javaClass A FileHandler writes logging records into a specified file or a rotating set of files.

When a set of files is used and a given amount of data has been written to one file, then this file is closed and another file is opened.

Filter.javaInterface A Filter provides a mechanism for exercising fine-grained control over which records get logged.
Formatter.javaClass Formatter objects are used to format LogRecord objects into a string representation.
Handler.javaClass A Handler object accepts a logging request and exports the desired messages to a target, for example, a file, the console, etc.
Level.javaClass Level objects are used to indicate the level of logging.
Logger.javaClass Loggers are used to log records to certain outputs, including file, console, etc.
LoggerExtension.javaClass Example of a type injected into logging to access package private members.
LoggingMXBean.javaInterface LoggingMXBean is the management interface for the logging sub-system.
LoggingPermission.javaClass The permission required to control the logging when run with a SecurityManager .
LogManager.javaClass LogManager is used to maintain configuration properties of the logging framework, and to manage a hierarchical namespace of all named Logger objects.

There is only one global LogManager instance in the application, which can be get by calling static method LogManager.getLogManager() .

LogRecord.javaClass A LogRecord object represents a logging request.
MemoryHandler.javaClass A Handler put the description of log events into a cycled memory buffer.

Mostly this MemoryHandler just puts the given LogRecord into the internal buffer and doesn't perform any formatting or any other process. When the buffer is full, the earliest buffered records will be discarded.

Every MemoryHandler has a target handler, and push action can be triggered so that all buffered records will be output to the target handler and normally the latter will publish the records.

SimpleFormatter.javaClass SimpleFormatter can be used to print a summary of the information contained in a LogRecord object in a human readable format.
SocketHandler.javaClass A handler that writes log messages to a socket connection.

This handler reads the following properties from the log manager to initialize itself:

  • java.util.logging.ConsoleHandler.level specifies the logging level, defaults to Level.ALL if this property is not found or has an invalid value.
  • java.util.logging.SocketHandler.filter specifies the name of the filter class to be associated with this handler, defaults to null if this property is not found or has an invalid value.
  • java.util.logging.SocketHandler.formatter specifies the name of the formatter class to be associated with this handler, defaults to java.util.logging.XMLFormatter if this property is not found or has an invalid value.
  • java.util.logging.SocketHandler.encoding specifies the encoding this handler will use to encode log messages, defaults to null if this property is not found or has an invalid value.
  • java.util.logging.SocketHandler.host specifies the name of the host that this handler should connect to.
StreamHandler.javaClass A StreamHandler object writes log messages to an output stream, that is, objects of the class java.io.OutputStream .

A StreamHandler object reads the following properties from the log manager to initialize itself.

XMLFormatter.javaClass Formatter to convert a LogRecord into an XML string.
w__w___w__.__j___a___v_a___2__s___.___c_o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.