Package org.apache.juneau.commons.io
Class Console
java.lang.Object
org.apache.juneau.commons.io.Console
A utility for logging formatted messages to the console.
Uses MessageFormat for formatting messages with arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidPrints a message with arguments toSystem.err.static final voidPrints a message with arguments toSystem.out.
-
Constructor Details
-
Console
public Console()Constructor.
-
-
Method Details
-
err
Prints a message with arguments toSystem.err.Arguments are formatted using
MessageFormat.Useful for debug messages.
Example:
Console.
err ("myPojo={0}" ,myPojo );- Parameters:
msg- TheMessageFormat-styled message.args- The arguments sent to the formatter.
-
out
Prints a message with arguments toSystem.out.Arguments are formatted using
MessageFormat.Useful for debug messages.
Example:
Console.
out ("myPojo={0}" ,myPojo );- Parameters:
msg- TheMessageFormat-styled message.args- The arguments sent to the formatter.
-