Package com.microstrategy.utils.log
Class StreamHandler
- java.lang.Object
-
- com.microstrategy.utils.log.Handler
-
- com.microstrategy.utils.log.StreamHandler
-
- All Implemented Interfaces:
Configurable
- Direct Known Subclasses:
ConsoleHandler
,FileHandler
,SimpleFileHandler
,TestFileHandler
,XmlApiFileHandler
public class StreamHandler extends Handler
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Constructor Summary
Constructors Constructor Description StreamHandler()
StreamHandler(java.io.OutputStream outS, Formatter formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
void
flush()
protected java.io.Writer
getWriter()
void
publish(LogRecord logRecord)
void
setEncoding(java.lang.String encodingScheme)
protected void
setOutputStream(java.io.OutputStream outS)
-
Methods inherited from class com.microstrategy.utils.log.Handler
configure, getEncoding, getEncodingSchemeSetting, getException, getFilter, getFilterSetting, getFormatter, getFormatterSetting, getLevel, getLevelSetting, getStringSettingWithDefaultValue, isLoggable, setException, setFilter, setFormatter, setLevel
-
-
-
-
Constructor Detail
-
StreamHandler
public StreamHandler()
-
StreamHandler
public StreamHandler(java.io.OutputStream outS, Formatter formatter)
-
-
Method Detail
-
setOutputStream
protected void setOutputStream(java.io.OutputStream outS)
-
setEncoding
public void setEncoding(java.lang.String encodingScheme)
- Overrides:
setEncoding
in classHandler
-
getWriter
protected java.io.Writer getWriter()
- Returns:
- the currently configured writer (may be null).
- Since:
- MicroStrategy Web 8.1.1
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-