public class Logger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Logger.Level |
Constructor and Description |
---|
Logger(java.lang.String prefix)
Gets a new Logger
|
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String... messages)
Log a message on the ERROR Level
|
void |
error(java.lang.Throwable exception)
Log an exception on the ERROR Level
|
void |
info(java.lang.String... messages)
Log a message on the INFO Level
|
void |
log(Logger.Level level,
java.lang.String... messages)
Log a message on the specified Level
|
static void |
setup(java.io.PrintStream out,
java.io.PrintStream err,
java.io.File dir)
Setup the SubServers Logger
|
void |
warn(java.lang.String... messages)
Log a message on the WARNING Level
|
public Logger(java.lang.String prefix)
prefix
- public static void setup(java.io.PrintStream out, java.io.PrintStream err, java.io.File dir) throws java.io.IOException
out
- System.outerr
- System.errdir
- Runtime Directoryjava.io.IOException
public void log(Logger.Level level, java.lang.String... messages)
level
- Level to log tomessages
- Messagespublic void info(java.lang.String... messages)
messages
- Messagespublic void warn(java.lang.String... messages)
messages
- Messagespublic void error(java.lang.String... messages)
messages
- Messagespublic void error(java.lang.Throwable exception)
exception
- Exception