Package com.iizigo
Class Console
java.lang.Object
com.iizigo.Console
- All Implemented Interfaces:
ILoggerRedirector
Console class with colors.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final int[]
Dark theme colors.static final int[]
Light theme colors.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
The types.static final int
Method Summary
Modifier and TypeMethodDescriptionstatic void
Prints a stderr message.static IPrintAdapter
Gets the printer to use for simple console output.void
onEventLogged
(LogEntry entry) Called when an event is logged.static void
Prints to any of the stream types.static void
Prints a stdout message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizix.ILoggerRedirector
disposeAndFlush
Field Details
TYPE_stderr
public static final int TYPE_stderrThe types.- See Also:
TYPE_stdout
public static final int TYPE_stdout- See Also:
TYPE_log_SEVERE
public static final int TYPE_log_SEVERE- See Also:
TYPE_log_WARNING
public static final int TYPE_log_WARNING- See Also:
TYPE_log_INFO
public static final int TYPE_log_INFO- See Also:
TYPE_log_CONFIG
public static final int TYPE_log_CONFIG- See Also:
TYPE_log_FINE
public static final int TYPE_log_FINE- See Also:
TYPE_log_FINER
public static final int TYPE_log_FINER- See Also:
TYPE_log_FINEST
public static final int TYPE_log_FINEST- See Also:
LIGHT_THEME_COLORS
public static final int[] LIGHT_THEME_COLORSLight theme colors.DARK_THEME_COLORS
public static final int[] DARK_THEME_COLORSDark theme colors.
Method Details
getPrintAdapter
Gets the printer to use for simple console output.- Returns:
- The instance.
onEventLogged
Called when an event is logged.- Specified by:
onEventLogged
in interfaceILoggerRedirector
- Parameters:
entry
- The log entry.
eprintln
Prints a stderr message.- Parameters:
msg
- The message to print.
println
Prints a stdout message.- Parameters:
msg
- The message to print.
println
Prints to any of the stream types.- Parameters:
type
- The type of message:TYPE_stderr = 0 TYPE_stdout = 1 TYPE_log_SEVERE = 2 TYPE_log_WARNING = 3 TYPE_log_INFO = 4 TYPE_log_CONFIG = 5 TYPE_log_FINE = 6 TYPE_log_FINER = 7 TYPE_log_FINEST = 8
msg
- The message to print.