public class ANSIColorLogger extends StreamLogger
Modifier and Type | Class and Description |
---|---|
static class |
ANSIColorLogger.ANSIColor |
Logger.LogLevel
Modifier and Type | Field and Description |
---|---|
static ANSIColorLogger.ANSIColor[] |
DEFAULT_COLOURS_BRIGHT |
static ANSIColorLogger.ANSIColor[] |
DEFAULT_COLOURS_DARK |
NUM_LEVELS
Constructor and Description |
---|
ANSIColorLogger() |
Modifier and Type | Method and Description |
---|---|
ANSIColorLogger |
clone() |
ANSIColorLogger.ANSIColor |
getColor(Logger.LogLevel level) |
static ANSIColorLogger |
getDefaultLogger() |
static void |
main(java.lang.String[] args) |
void |
print(java.lang.Object obj,
Logger.LogLevel level)
Print information at the supplied level to the log
|
void |
println(java.lang.Object obj,
Logger.LogLevel level)
Print information at the supplied level to the log, with a trailing newline
|
void |
removeColours() |
void |
setColour(Logger.LogLevel level,
ANSIColorLogger.ANSIColor colour) |
void |
setDefaultBrightColours() |
void |
setDefaultDarkColours() |
debug, error, fatal, getLogLevel, getStream, info, print, println, setDefaultStreams, setLogLevel, setStream, trace, warn
getSystemLogger, setSystemLogger
public static ANSIColorLogger.ANSIColor[] DEFAULT_COLOURS_DARK
public static ANSIColorLogger.ANSIColor[] DEFAULT_COLOURS_BRIGHT
public void setDefaultBrightColours()
public void setDefaultDarkColours()
public void removeColours()
public void setColour(Logger.LogLevel level, ANSIColorLogger.ANSIColor colour)
public ANSIColorLogger.ANSIColor getColor(Logger.LogLevel level)
public void print(java.lang.Object obj, Logger.LogLevel level)
Logger
print
in class StreamLogger
obj
- object to loglevel
- desired levelpublic void println(java.lang.Object obj, Logger.LogLevel level)
Logger
println
in class StreamLogger
obj
- object to loglevel
- desired levelpublic ANSIColorLogger clone() throws java.lang.CloneNotSupportedException
clone
in interface Clonable
clone
in class StreamLogger
java.lang.CloneNotSupportedException
public static ANSIColorLogger getDefaultLogger()
public static void main(java.lang.String[] args)