Class LogWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.moditect.internal.command.LogWriter
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
- Author:
- Aleks Seovic 2022.04.15
-
Field Summary
Fields inherited from class PrintWriter
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, writeMethods inherited from class Writer
nullWriter
-
Constructor Details
-
LogWriter
Creates a new PrintWriter that will write everything to the specified log in addition toSystem.out.- Parameters:
log- the log to write to
-
-
Method Details
-
println
Prints a String and then terminates the line. This method behaves as though it invokesPrintWriter.print(String)and thenPrintWriter.println().- Overrides:
printlnin classPrintWriter- Parameters:
sText- theStringvalue to be printed
-