Liking cljdoc? Tell your friends :D

jdk.util.logging.Handler

A Handler object takes log messages from a Logger and exports them. It might for example, write them to a console or write them to a file, or send them to a network logging service, or forward them to an OS log, or whatever.

A Handler can be disabled by doing a setLevel(Level.OFF) and can be re-enabled by doing a setLevel with an appropriate level.

Handler classes typically use LogManager properties to set default values for the Handler's Filter, Formatter, and Level. See the specific documentation for each concrete Handler class.

A Handler object takes log messages from a Logger and
exports them.  It might for example, write them to a console
or write them to a file, or send them to a network logging service,
or forward them to an OS log, or whatever.

A Handler can be disabled by doing a setLevel(Level.OFF)
and can  be re-enabled by doing a setLevel with an appropriate level.

Handler classes typically use LogManager properties to set
default values for the Handler's Filter, Formatter,
and Level.  See the specific documentation for each concrete
Handler class.
raw docstring

closeclj

(close this)

Close the Handler and free all associated resources.

The close method will perform a flush and then close the Handler. After close has been called this Handler should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Close the Handler and free all associated resources.

 The close method will perform a flush and then close the
 Handler.   After close has been called this Handler
 should no longer be used.  Method calls may either be silently
 ignored or may throw runtime exceptions.

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

flushclj

(flush this)

Flush any buffered output.

Flush any buffered output.
raw docstring

get-encodingclj

(get-encoding this)

Return the character encoding for this Handler.

returns: The encoding name. May be null, which indicates the default encoding should be used. - java.lang.String

Return the character encoding for this Handler.

returns: The encoding name.  May be null, which indicates the
          default encoding should be used. - `java.lang.String`
raw docstring

get-error-managerclj

(get-error-manager this)

Retrieves the ErrorManager for this Handler.

returns: the ErrorManager for this Handler - java.util.logging.ErrorManager

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Retrieves the ErrorManager for this Handler.

returns: the ErrorManager for this Handler - `java.util.logging.ErrorManager`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

get-filterclj

(get-filter this)

Get the current Filter for this Handler.

returns: a Filter object (may be null) - java.util.logging.Filter

Get the current Filter for this Handler.

returns: a Filter object (may be null) - `java.util.logging.Filter`
raw docstring

get-formatterclj

(get-formatter this)

Return the Formatter for this Handler.

returns: the Formatter (may be null). - java.util.logging.Formatter

Return the Formatter for this Handler.

returns: the Formatter (may be null). - `java.util.logging.Formatter`
raw docstring

get-levelclj

(get-level this)

Get the log level specifying which messages will be logged by this Handler. Message levels lower than this level will be discarded.

returns: the level of messages being logged. - java.util.logging.Level

Get the log level specifying which messages will be
 logged by this Handler.  Message levels lower
 than this level will be discarded.

returns: the level of messages being logged. - `java.util.logging.Level`
raw docstring

loggable?clj

(loggable? this record)

Check if this Handler would actually log a given LogRecord.

This method checks if the LogRecord has an appropriate Level and whether it satisfies any Filter. It also may make other Handler specific checks that might prevent a handler from logging the LogRecord. It will return false if the LogRecord is null.

record - a LogRecord - java.util.logging.LogRecord

returns: true if the LogRecord would be logged. - boolean

Check if this Handler would actually log a given LogRecord.

 This method checks if the LogRecord has an appropriate
 Level and  whether it satisfies any Filter.  It also
 may make other Handler specific checks that might prevent a
 handler from logging the LogRecord. It will return false if
 the LogRecord is null.

record - a LogRecord - `java.util.logging.LogRecord`

returns: true if the LogRecord would be logged. - `boolean`
raw docstring

publishclj

(publish this record)

Publish a LogRecord.

The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.

The Handler is responsible for formatting the message, when and if necessary. The formatting should include localization.

record - description of the log event. A null record is silently ignored and is not published - java.util.logging.LogRecord

Publish a LogRecord.

 The logging request was made initially to a Logger object,
 which initialized the LogRecord and forwarded it here.

 The Handler  is responsible for formatting the message, when and
 if necessary.  The formatting should include localization.

record - description of the log event. A null record is silently ignored and is not published - `java.util.logging.LogRecord`
raw docstring

set-encodingclj

(set-encoding this encoding)

Set the character encoding used by this Handler.

The encoding should be set before any LogRecords are written to the Handler.

encoding - The name of a supported character encoding. May be null, to indicate the default platform encoding. - java.lang.String

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Set the character encoding used by this Handler.

 The encoding should be set before any LogRecords are written
 to the Handler.

encoding - The name of a supported character encoding. May be null, to indicate the default platform encoding. - `java.lang.String`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

set-error-managerclj

(set-error-manager this em)

Define an ErrorManager for this Handler.

The ErrorManager's "error" method will be invoked if any errors occur while using this Handler.

em - the new ErrorManager - java.util.logging.ErrorManager

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Define an ErrorManager for this Handler.

 The ErrorManager's "error" method will be invoked if any
 errors occur while using this Handler.

em - the new ErrorManager - `java.util.logging.ErrorManager`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

set-filterclj

(set-filter this new-filter)

Set a Filter to control output on this Handler.

For each call of publish the Handler will call this Filter (if it is non-null) to check if the LogRecord should be published or discarded.

new-filter - a Filter object (may be null) - java.util.logging.Filter

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Set a Filter to control output on this Handler.

 For each call of publish the Handler will call
 this Filter (if it is non-null) to check if the
 LogRecord should be published or discarded.

new-filter - a Filter object (may be null) - `java.util.logging.Filter`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

set-formatterclj

(set-formatter this new-formatter)

Set a Formatter. This Formatter will be used to format LogRecords for this Handler.

Some Handlers may not use Formatters, in which case the Formatter will be remembered, but not used.

new-formatter - the Formatter to use (may not be null) - java.util.logging.Formatter

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Set a Formatter.  This Formatter will be used
 to format LogRecords for this Handler.

 Some Handlers may not use Formatters, in
 which case the Formatter will be remembered, but not used.

new-formatter - the Formatter to use (may not be null) - `java.util.logging.Formatter`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

set-levelclj

(set-level this new-level)

Set the log level specifying which message levels will be logged by this Handler. Message levels lower than this value will be discarded.

The intention is to allow developers to turn on voluminous logging, but to limit the messages that are sent to certain Handlers.

new-level - the new value for the log level - java.util.logging.Level

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").

Set the log level specifying which message levels will be
 logged by this Handler.  Message levels lower than this
 value will be discarded.

 The intention is to allow developers to turn on voluminous
 logging, but to limit the messages that are sent to certain
 Handlers.

new-level - the new value for the log level - `java.util.logging.Level`

throws: java.lang.SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close