This Handler publishes log records to System.err.
By default the SimpleFormatter is used to generate brief summaries.
Configuration:
By default each ConsoleHandler is initialized using the following
LogManager configuration properties where <handler-name>
refers to the fully-qualified class name of the handler.
If properties are not defined
(or have invalid values) then the specified default values are used.
<handler-name>.level
specifies the default level for the Handler
(defaults to Level.INFO).
<handler-name>.filter
specifies the name of a Filter class to use
(defaults to no Filter).
<handler-name>.formatter
specifies the name of a Formatter class to use
(defaults to java.util.logging.SimpleFormatter).
<handler-name>.encoding
the name of the character set encoding to use (defaults to
the default platform encoding).
For example, the properties for ConsoleHandler would be:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["The `ConsoleHandler` class publishes log records to `System.err`, using `SimpleFormatter` by default. Configuration is managed via `LogManager` properties, allowing customization of log levels, filters, formatters, and character encoding. Key actions include: creating a `ConsoleHandler` for `System.err`, publishing `LogRecord` instances, and overriding `StreamHandler.close` to flush output without closing `System.err`. This class also provides options to set output encoding and stream, control output with filters and formatters and control the level of logs to be displayed.\n"]]