Class WriterBasedFileLog
- java.lang.Object
-
- net.sourceforge.jnlp.util.logging.filelogs.WriterBasedFileLog
-
- All Implemented Interfaces:
java.lang.AutoCloseable,SingleStreamLogger
public final class WriterBasedFileLog extends java.lang.Object implements SingleStreamLogger
This class writes log information to file.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.BufferedWriterbw
-
Constructor Summary
Constructors Constructor Description WriterBasedFileLog(java.lang.String fileName, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidlog(java.lang.String s)Log the String to file.
-
-
-
Method Detail
-
log
public void log(java.lang.String s)
Log the String to file.- Specified by:
login interfaceSingleStreamLogger- Parameters:
s-Exceptionthat was thrown.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceSingleStreamLogger
-
-