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 String
private final Log
private static final String
Fields 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, write
Methods 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:
println
in classPrintWriter
- Parameters:
sText
- theString
value to be printed
-