Writer.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements java. Close this logger. |
| protected void | doPublish(final ExtLogRecord
the log record to publish record)Overrides org. Do the actual work of publication; the record will have been filtered already. |
| public void | flush()
Overrides org. Implements java. Flush this logger. |
| pack-priv Writer | |
| public boolean | Returns: true to check and report head encoding problems, or false to ignore themDetermine whether head encoding checking is turned on. |
| public boolean | Returns: true to check and report tail encoding problems, or false to ignore themDetermine whether tail encoding checking is turned on. |
| protected void | preWrite(final ExtLogRecord
the record about to be logged record)Execute any pre-write policy, such as file rotation. |
| protected void | |
| pack-priv void | |
| public WriterHandler | Returns: this handlertrue to check and report head encoding problems, or false to ignore themEstablish whether head encoding checking is turned on. |
| public WriterHandler | Returns: this handlertrue to check and report tail encoding problems, or false to ignore themEstablish whether tail encoding checking is turned on. |
| public void | |
| private void | |
| private void |
| checkHeadEncoding | back to summary |
|---|---|
| private volatile boolean checkHeadEncoding | |
| checkTailEncoding | back to summary |
|---|---|
| private volatile boolean checkTailEncoding | |
| writer | back to summary |
|---|---|
| private Writer writer | |
| WriterHandler | back to summary |
|---|---|
| public WriterHandler() Construct a new instance. | |
| close | back to summary |
|---|---|
| public void close() throws SecurityException Overrides org. Implements java. Close this logger.
| |
| doPublish | back to summary |
|---|---|
| protected void doPublish(final ExtLogRecord record) Overrides org. Doc from org. Do the actual work of publication; the record will have been filtered already. The default implementation
does nothing except to flush if the
| |
| flush | back to summary |
|---|---|
| public void flush() Overrides org. Implements java. Flush this logger. | |
| getWriter | back to summary |
|---|---|
| pack-priv Writer getWriter() | |
| isCheckHeadEncoding | back to summary |
|---|---|
| public boolean isCheckHeadEncoding() Determine whether head encoding checking is turned on.
| |
| isCheckTailEncoding | back to summary |
|---|---|
| public boolean isCheckTailEncoding() Determine whether tail encoding checking is turned on.
| |
| preWrite | back to summary |
|---|---|
| protected void preWrite(final ExtLogRecord record) Execute any pre-write policy, such as file rotation. The write lock is held during this method, so make it quick. The default implementation does nothing.
| |
| safeClose | back to summary |
|---|---|
| protected void safeClose(Closeable c) Safely close the resource, reporting an error if the close fails.
| |
| safeFlush | back to summary |
|---|---|
| pack-priv void safeFlush(Flushable f) | |
| setCheckHeadEncoding | back to summary |
|---|---|
| public WriterHandler setCheckHeadEncoding(boolean checkHeadEncoding) Establish whether head encoding checking is turned on.
| |
| setCheckTailEncoding | back to summary |
|---|---|
| public WriterHandler setCheckTailEncoding(boolean checkTailEncoding) Establish whether tail encoding checking is turned on.
| |
| setWriter | back to summary |
|---|---|
| public void setWriter(final Writer writer) Set the writer. The writer will then belong to this handler; when the handler is closed or a new writer is set, this writer will be closed.
| |
| writeHead | back to summary |
|---|---|
| private void writeHead(final Writer writer) | |
| writeTail | back to summary |
|---|---|
| private void writeTail(final Writer writer) | |