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 printf-style (%s/%d/…) formatting for messages with arguments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidPrints a message with arguments toSystem.err.static final voidPrints a message with arguments toSystem.out.
-
Method Details
-
err
Prints a message with arguments toSystem.err.Arguments are formatted using printf-style (
%s) placeholders.Useful for debug messages.
Example:
Console.
err ("myPojo=%s" ,myPojo );- Parameters:
msg- The printf-styled message.args- The arguments sent to the formatter.
-
out
Prints a message with arguments toSystem.out.Arguments are formatted using printf-style (
%s) placeholders.Useful for debug messages.
Example:
Console.
out ("myPojo=%s" ,myPojo );- Parameters:
msg- The printf-styled message.args- The arguments sent to the formatter.
-