Package org.moditect.internal.command
Class LogWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.moditect.internal.command.LogWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final Logprivate static final StringFields inherited from class java.io.PrintWriter
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.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 java.io.Writer
nullWriter
-
Field Details
-
ERROR_PREFIX
- See Also:
-
WARNING_PREFIX
- See Also:
-
log
-
-
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
-