Uses of Class
java.util.logging.Handler

Packages that use Handler
Package Description
java.util.logging  
  • Uses of Handler in java.util.logging

    Subclasses of Handler in java.util.logging
    Modifier and Type Class Description
    class  ConsoleHandler
    A handler that writes log messages to the standard output stream System.err.
    class  FileHandler
    A FileHandler writes logging records into a specified file or a rotating set of files.
    class  MemoryHandler
    A Handler put the description of log events into a cycled memory buffer.
    class  SocketHandler
    A handler that writes log messages to a socket connection.
    class  StreamHandler
    A StreamHandler object writes log messages to an output stream, that is, objects of the class OutputStream.
    Methods in java.util.logging that return Handler
    Modifier and Type Method Description
    Handler[] Logger.getHandlers()
    Gets all the handlers associated with this logger.
    Methods in java.util.logging with parameters of type Handler
    Modifier and Type Method Description
    void Logger.addHandler​(Handler handler)
    Adds a handler to this logger.
    String Formatter.getHead​(Handler h)
    Gets the head string used to wrap a set of log records.
    String XMLFormatter.getHead​(Handler h)
    Returns the header string for a set of log records formatted as XML strings, using the output handler's encoding if it is defined, otherwise using the default platform encoding.
    String Formatter.getTail​(Handler h)
    Gets the tail string used to wrap a set of log records.
    String XMLFormatter.getTail​(Handler h)
    Returns the tail string for a set of log records formatted as XML strings.
    void Logger.removeHandler​(Handler handler)
    Removes a handler from this logger.
    Constructors in java.util.logging with parameters of type Handler
    Constructor Description
    MemoryHandler​(Handler target, int size, Level pushLevel)
    Construct and init a MemoryHandler using given target, size and push level, other properties using LogManager properties or default values.