Top Description Fields Constructors Methods
org.jboss.logmanager

public Class StandardOutputStreams

extends Object
Class Inheritance
Annotations
@SuppressWarnings:WeakerAccess, unused
Imports
java.io.PrintStream

Caches stdout and stderr early.
Author
James R. Perkins

Field Summary

Modifier and TypeField and Description
public static final PrintStream
public static final PrintStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
printError(final String
the message to print
msg
)

Prints an error messages to stderr.

public static void
printError(final String
the format
format
,
final Object...
the arguments for the format
args
)

Prints an error messages to stderr.

public static void
printError(final Throwable
the cause of the error, if not null the Throwable#printStackTrace(PrintStream) writes to stderr
cause
,
final String
the message to print
msg
)

Prints an error messages to stderr.

public static void
printError(final Throwable
the cause of the error, if not null the Throwable#printStackTrace(PrintStream) writes to stderr
cause
,
final String
the format
format
,
final Object...
the arguments for the format
args
)

Prints an error messages to stderr.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stderrback to summary
public static final PrintStream stderr
stdoutback to summary
public static final PrintStream stdout

Constructor Detail

StandardOutputStreamsback to summary
public StandardOutputStreams()

Method Detail

printErrorback to summary
public static void printError(final String msg)

Prints an error messages to stderr.

Parameters
msg:String

the message to print

printErrorback to summary
public static void printError(final String format, final Object... args)

Prints an error messages to stderr.

Parameters
format:String

the format

args:Object[]

the arguments for the format

printErrorback to summary
public static void printError(final Throwable cause, final String msg)

Prints an error messages to stderr.

Parameters
cause:Throwable

the cause of the error, if not null the Throwable#printStackTrace(PrintStream) writes to stderr

msg:String

the message to print

printErrorback to summary
public static void printError(final Throwable cause, final String format, final Object... args)

Prints an error messages to stderr.

Parameters
cause:Throwable

the cause of the error, if not null the Throwable#printStackTrace(PrintStream) writes to stderr

format:String

the format

args:Object[]

the arguments for the format