Improved build.xml
[vimdoclet.git] / sample / java.util.logging.ConsoleHandler.txt
blobcd5837e1955951aeaec85419b12e6df752d112c7
1 *java.util.logging.ConsoleHandler* *ConsoleHandler* This Handler publishes log r
3 public class ConsoleHandler
4   extends    |java.util.logging.StreamHandler|
6 |java.util.logging.ConsoleHandler_Description|
7 |java.util.logging.ConsoleHandler_Fields|
8 |java.util.logging.ConsoleHandler_Constructors|
9 |java.util.logging.ConsoleHandler_Methods|
11 ================================================================================
13 *java.util.logging.ConsoleHandler_Constructors*
14 |java.util.logging.ConsoleHandler()|Create a ConsoleHandler for System.err.
16 *java.util.logging.ConsoleHandler_Methods*
17 |java.util.logging.ConsoleHandler.close()|Override StreamHandler.close to do a 
18 |java.util.logging.ConsoleHandler.publish(LogRecord)|Publish a LogRecord.
20 *java.util.logging.ConsoleHandler_Description*
22 This Handler publishes log records to System.err. By default the 
23 SimpleFormatter is used to generate brief summaries. 
25 Configuration: By default each ConsoleHandler is initialized using the 
26 following LogManager configuration properties. If properties are not defined 
27 (or have invalid values) then the specified default values are used. 
29 java.util.logging.ConsoleHandler.level specifies the default level for the 
30 Handler (defaults to Level.INFO). java.util.logging.ConsoleHandler.filter 
31 specifies the name of a Filter class to use (defaults to no Filter). 
32 java.util.logging.ConsoleHandler.formatter specifies the name of a Formatter 
33 class to use (defaults to java.util.logging.SimpleFormatter). 
34 java.util.logging.ConsoleHandler.encoding the name of the character set 
35 encoding to use (defaults to the default platform encoding). 
40 *java.util.logging.ConsoleHandler()*
42 public ConsoleHandler()
44 Create a ConsoleHandler for System.err. 
46 The ConsoleHandler is configured based on LogManager properties (or their 
47 default values). 
50 *java.util.logging.ConsoleHandler.close()*
52 public void close()
54 Override StreamHandler.close to do a flush but not to close the output stream. 
55 That is, we do not close System.err. 
58 *java.util.logging.ConsoleHandler.publish(LogRecord)*
60 public void publish(java.util.logging.LogRecord record)
62 Publish a LogRecord. 
64 The logging request was made initially to a Logger object, which initialized 
65 the LogRecord and forwarded it here. 
67     record - description of the log event. A null record is silently ignored and is not 
68        published