Package hudson.logging
Class WeakLogHandler
java.lang.Object
java.util.logging.Handler
hudson.logging.WeakLogHandler
Delegating
Handler
that uses WeakReference
,
which de-registers itself when an object disappears via GC.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
boolean
isLoggable
(LogRecord record) void
void
setEncoding
(String encoding) void
void
void
setFormatter
(Formatter newFormatter) void
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError
-
Constructor Details
-
WeakLogHandler
-
-
Method Details
-
publish
-
flush
public void flush() -
close
- Specified by:
close
in classHandler
- Throws:
SecurityException
-
setFormatter
- Overrides:
setFormatter
in classHandler
- Throws:
SecurityException
-
setEncoding
- Overrides:
setEncoding
in classHandler
- Throws:
SecurityException
UnsupportedEncodingException
-
setFilter
- Overrides:
setFilter
in classHandler
- Throws:
SecurityException
-
setErrorManager
- Overrides:
setErrorManager
in classHandler
-
setLevel
- Overrides:
setLevel
in classHandler
- Throws:
SecurityException
-
isLoggable
- Overrides:
isLoggable
in classHandler
-