Package org.jboss.logmanager
Class StandardOutputStreams
- java.lang.Object
-
- org.jboss.logmanager.StandardOutputStreams
-
public class StandardOutputStreams extends Object
- Author:
- James R. Perkins
-
-
Field Summary
Fields Modifier and Type Field Description static PrintStreamstderrstatic PrintStreamstdout
-
Constructor Summary
Constructors Constructor Description StandardOutputStreams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintError(String msg)Prints an error messages tostderr.static voidprintError(String format, Object... args)Prints an error messages tostderr.static voidprintError(Throwable cause, String msg)Prints an error messages tostderr.static voidprintError(Throwable cause, String format, Object... args)Prints an error messages tostderr.
-
-
-
Field Detail
-
stdout
public static final PrintStream stdout
-
stderr
public static final PrintStream stderr
-
-
Method Detail
-
printError
public static void printError(String msg)
Prints an error messages tostderr.- Parameters:
msg- the message to print
-
printError
public static void printError(String format, Object... args)
Prints an error messages tostderr.- Parameters:
format- theformatargs- the arguments for the format
-
printError
public static void printError(Throwable cause, String msg)
Prints an error messages tostderr.- Parameters:
cause- the cause of the error, if notnulltheThrowable.printStackTrace(PrintStream)writes tostderrmsg- the message to print
-
-