public class LogFileHandler extends Object implements LogHandler
| Constructor and Description |
|---|
LogFileHandler(String filename,
boolean flushAfterWrite,
String maxLogFileSize,
String maxLogFileCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(String message)
Write the message using this handler.
|
public void write(String message) throws Exception
LogHandlerwrite in interface LogHandlermessage - Log entryException - throws when any error happens during write operation.public void close()
throws Exception
close in interface LogHandlerExceptionpublic void flush()
flush in interface LogHandlerCopyright © 2024 Amazon.com Inc.. All rights reserved.