public abstract class ILogger
extends java.lang.Object
Each Class that wishes to log must call the Logger.get method with itself
as the only argument, or with an optional string value. This will return a new Logger
object.
To log something, the Calling class must call the desired level method
info, debug, warn, error, fatal with the message to be logged. If the
calling the err or fatal classes, a Throwable object must be passed as a second
argument. Calling the error method will only print the message and
error stack trace. However, calling the fatal method will print the
stack trace, and kill the program.
| Constructor and Description |
|---|
ILogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(boolean b)
Log a
boolean to the logger, with debug status. |
void |
debug(char c)
Log an
char to the logger, with debug status. |
void |
debug(char[] c)
Log an
char to the logger, with debug status. |
void |
debug(double d)
Log an
double to the logger, with debug status. |
void |
debug(float f)
Log an
float to the logger, with debug status. |
void |
debug(int i)
Log an
int to the logger, with debug status. |
void |
debug(long l)
Log an
long to the logger, with debug status. |
void |
debug(java.lang.Object obj)
Log an
Object to the logger, with debug status. |
abstract void |
debug(java.lang.String s)
Log an
String to the logger, with debug status. |
void |
enableDebug()
Enable the output of debug statements.
|
abstract void |
enableDebug(boolean enable)
Enable the output of debug statements.
|
void |
error(boolean b,
java.lang.Object o)
Log a
boolean to the logger, with error status. |
void |
error(char[] c,
java.lang.Object o)
Log an
char to the logger, with error status. |
void |
error(char c,
java.lang.Object o)
Log an
char to the logger, with error status. |
void |
error(double d,
java.lang.Object o)
Log an
double to the logger, with error status. |
void |
error(float f,
java.lang.Object o)
Log an
float to the logger, with error status. |
void |
error(int i,
java.lang.Object o)
Log an
int to the logger, with error status. |
void |
error(long l,
java.lang.Object o)
Log an
long to the logger, with error status. |
void |
error(java.lang.Object obj,
java.lang.Object o)
Log an
Object to the logger, with error status. |
void |
error(java.lang.String s)
Log an
String to the logger, with error status. |
abstract void |
error(java.lang.String s,
java.lang.Object o)
Log an
String to the logger, with error status. |
private void |
fatal_imp(java.lang.String s,
java.lang.Object o)
Fatal_imp.
|
void |
fatal(boolean b,
java.lang.Object o)
Log a
boolean to the logger, with fatal status. |
void |
fatal(char[] c,
java.lang.Object o)
Log an
char to the logger, with fatal status. |
void |
fatal(char c,
java.lang.Object o)
Log an
char to the logger, with fatal status. |
void |
fatal(double d,
java.lang.Object o)
Log an
double to the logger, with fatal status. |
void |
fatal(float f,
java.lang.Object o)
Log an
float to the logger, with fatal status. |
void |
fatal(int i,
java.lang.Object o)
Log an
int to the logger, with fatal status. |
void |
fatal(long l,
java.lang.Object o)
Log an
long to the logger, with fatal status. |
void |
fatal(java.lang.Object obj,
java.lang.Object o)
Log an
Object to the logger, with fatal status. |
void |
fatal(java.lang.String s)
Log an
String to the logger, with fatal status. |
abstract void |
fatal(java.lang.String s,
java.lang.Object o)
Log an
String to the logger, with fatal status. |
void |
info(boolean b)
Log a
boolean to the logger, with info status. |
void |
info(char c)
Log an
char to the logger, with info status. |
void |
info(char[] c)
Log an
char to the logger, with info status. |
void |
info(double d)
Log an
double to the logger, with info status. |
void |
info(float f)
Log an
float to the logger, with info status. |
void |
info(int i)
Log an
int to the logger, with info status. |
void |
info(long l)
Log an
long to the logger, with info status. |
void |
info(java.lang.Object obj)
Log an
Object to the logger, with info status. |
abstract void |
info(java.lang.String s)
Log an
String to the logger, with info status. |
void |
log(LogLevel lvl,
boolean b)
Log a
boolean to the logger, with log status. |
void |
log(LogLevel lvl,
char c)
Log an
char to the logger, with log status. |
void |
log(LogLevel lvl,
char[] c)
Log an
char to the logger, with log status. |
void |
log(LogLevel lvl,
double d)
Log an
double to the logger, with log status. |
void |
log(LogLevel lvl,
float f)
Log an
float to the logger, with log status. |
void |
log(LogLevel lvl,
int i)
Log an
int to the logger, with log status. |
void |
log(LogLevel lvl,
long l)
Log an
long to the logger, with log status. |
void |
log(LogLevel lvl,
java.lang.Object obj)
Log an
Object to the logger, with log status. |
abstract void |
log(LogLevel lvl,
java.lang.String s)
Log an
String to the logger, with log status. |
abstract void |
registerOutput(LogOutput out)
Add an output to the logger for this object.
|
private void |
severe_imp(java.lang.String s,
java.lang.Object o)
Severe_imp.
|
void |
severe(boolean b,
java.lang.Object o)
Log a
boolean to the logger, with severe status. |
void |
severe(char[] c,
java.lang.Object o)
Log an
char to the logger, with severe status. |
void |
severe(char c,
java.lang.Object o)
Log an
char to the logger, with severe status. |
void |
severe(double d,
java.lang.Object o)
Log an
double to the logger, with severe status. |
void |
severe(float f,
java.lang.Object o)
Log an
float to the logger, with severe status. |
void |
severe(int i,
java.lang.Object o)
Log an
int to the logger, with severe status. |
void |
severe(long l,
java.lang.Object o)
Log an
long to the logger, with severe status. |
void |
severe(java.lang.Object obj,
java.lang.Object o)
Log an
Object to the logger, with severe status. |
void |
severe(java.lang.String s)
Log an
String to the logger, with severe status. |
abstract void |
severe(java.lang.String s,
java.lang.Object o)
Log an
String to the logger, with severe status. |
void |
warn(boolean b)
Log a
boolean to the logger, with warn status. |
void |
warn(char c)
Log an
char to the logger, with warn status. |
void |
warn(char[] c)
Log an
char to the logger, with warn status. |
void |
warn(double d)
Log an
double to the logger, with warn status. |
void |
warn(float f)
Log an
float to the logger, with warn status. |
void |
warn(int i)
Log an
int to the logger, with warn status. |
void |
warn(long l)
Log an
long to the logger, with warn status. |
void |
warn(java.lang.Object obj)
Log an
Object to the logger, with warn status. |
abstract void |
warn(java.lang.String s)
Log an
String to the logger, with warning status. |
public abstract void registerOutput(LogOutput out)
out - a LogOutput instancepublic final void enableDebug()
public abstract void enableDebug(boolean enable)
enable - enable the output of debug statementspublic final void log(LogLevel lvl, java.lang.Object obj)
Object to the logger, with log status.lvl - the LogLevel to send with this messageobj - the Object to logpublic final void log(LogLevel lvl, boolean b)
boolean to the logger, with log status.lvl - the LogLevel to send with this messageb - the boolean to logpublic final void log(LogLevel lvl, char c)
char to the logger, with log status.lvl - the LogLevel to send with this messagec - the char to logpublic final void log(LogLevel lvl, char[] c)
char to the logger, with log status.lvl - the LogLevel to send with this messagec - the cpublic final void log(LogLevel lvl, double d)
double to the logger, with log status.lvl - the LogLevel to send with this messaged - the double to logpublic final void log(LogLevel lvl, float f)
float to the logger, with log status.lvl - the LogLevel to send with this messagef - the float to logpublic final void log(LogLevel lvl, int i)
int to the logger, with log status.lvl - the LogLevel to send with this messagei - the int to logpublic final void log(LogLevel lvl, long l)
long to the logger, with log status.lvl - the LogLevel to send with this messagel - the long to logpublic abstract void log(LogLevel lvl, java.lang.String s)
String to the logger, with log status.lvl - the LogLevel to send with this messages - the String to logpublic final void info(java.lang.Object obj)
Object to the logger, with info status.obj - the Object to logpublic final void info(boolean b)
boolean to the logger, with info status.b - the boolean to logpublic final void info(char c)
char to the logger, with info status.c - the char to logpublic final void info(char[] c)
char to the logger, with info status.c - the cpublic final void info(double d)
double to the logger, with info status.d - the double to logpublic final void info(float f)
float to the logger, with info status.f - the float to logpublic final void info(int i)
int to the logger, with info status.i - the int to logpublic final void info(long l)
long to the logger, with info status.l - the long to logpublic abstract void info(java.lang.String s)
String to the logger, with info status.s - the String to logpublic final void debug(java.lang.Object obj)
Object to the logger, with debug status.obj - the Object to logpublic final void debug(boolean b)
boolean to the logger, with debug status.b - the boolean to logpublic final void debug(char c)
char to the logger, with debug status.c - the char to logpublic final void debug(char[] c)
char to the logger, with debug status.c - the cpublic final void debug(double d)
double to the logger, with debug status.d - the double to logpublic final void debug(float f)
float to the logger, with debug status.f - the float to logpublic final void debug(int i)
int to the logger, with debug status.i - the int to logpublic final void debug(long l)
long to the logger, with debug status.l - the long to logpublic abstract void debug(java.lang.String s)
String to the logger, with debug status.s - the String to logpublic final void warn(java.lang.Object obj)
Object to the logger, with warn status.obj - the Object to logpublic final void warn(boolean b)
boolean to the logger, with warn status.b - the boolean to logpublic final void warn(char c)
char to the logger, with warn status.c - the char to logpublic final void warn(char[] c)
char to the logger, with warn status.c - the cpublic final void warn(double d)
double to the logger, with warn status.d - the double to logpublic final void warn(float f)
float to the logger, with warn status.f - the float to logpublic final void warn(int i)
int to the logger, with warn status.i - the int to logpublic final void warn(long l)
long to the logger, with warn status.l - the long to logpublic abstract void warn(java.lang.String s)
String to the logger, with warning status.s - the String to logpublic final void error(java.lang.Object obj,
java.lang.Object o)
Object to the logger, with error status.obj - the Object to logo - the Object to send with the messagepublic final void error(boolean b,
java.lang.Object o)
boolean to the logger, with error status.b - the boolean to logo - the Object to send with the messagepublic final void error(char c,
java.lang.Object o)
char to the logger, with error status.c - the char to logo - the Object to send with the messagepublic final void error(char[] c,
java.lang.Object o)
char to the logger, with error status.c - the co - the Object to send with the messagepublic final void error(double d,
java.lang.Object o)
double to the logger, with error status.d - the double to logo - the Object to send with the messagepublic final void error(float f,
java.lang.Object o)
float to the logger, with error status.f - the float to logo - the Object to send with the messagepublic final void error(int i,
java.lang.Object o)
int to the logger, with error status.i - the int to logo - the Object to send with the messagepublic final void error(long l,
java.lang.Object o)
long to the logger, with error status.l - the long to logo - the Object to send with the messagepublic final void error(java.lang.String s)
String to the logger, with error status.s - the String to logpublic abstract void error(java.lang.String s,
java.lang.Object o)
String to the logger, with error status.s - the String to logo - the Object to send with the messagepublic final void severe(java.lang.Object obj,
java.lang.Object o)
Object to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitobj - the Object to logo - the Object to send with the messagepublic final void severe(boolean b,
java.lang.Object o)
boolean to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitb - the boolean to logo - the Object to send with the messagepublic final void severe(char c,
java.lang.Object o)
char to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitc - the char to logo - the Object to send with the messagepublic final void severe(char[] c,
java.lang.Object o)
char to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitc - the co - the Object to send with the messagepublic final void severe(double d,
java.lang.Object o)
double to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitd - the double to logo - the Object to send with the messagepublic final void severe(float f,
java.lang.Object o)
float to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitf - the float to logo - the Object to send with the messagepublic final void severe(int i,
java.lang.Object o)
int to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quiti - the int to logo - the Object to send with the messagepublic final void severe(long l,
java.lang.Object o)
long to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quitl - the long to logo - the Object to send with the messagepublic final void severe(java.lang.String s)
String to the logger, with severe status.s - the String to logprivate final void severe_imp(java.lang.String s,
java.lang.Object o)
s - the so - the opublic abstract void severe(java.lang.String s,
java.lang.Object o)
String to the logger, with severe status.
If the exception passed to this method is an Error or
Runtime Exception, the Program will Quits - the String to logo - the Object to send with the messagepublic final void fatal(java.lang.Object obj,
java.lang.Object o)
Object to the logger, with fatal status.
Program will exit with status 1obj - the Object to logo - the Object to send with the messagepublic final void fatal(boolean b,
java.lang.Object o)
boolean to the logger, with fatal status.b - the boolean to logo - the Object to send with the messagepublic final void fatal(char c,
java.lang.Object o)
char to the logger, with fatal status.
Program will exit with status 1c - the char to logo - the Object to send with the messagepublic final void fatal(char[] c,
java.lang.Object o)
char to the logger, with fatal status.
Program will exit with status 1c - the co - the Object to send with the messagepublic final void fatal(double d,
java.lang.Object o)
double to the logger, with fatal status.
Program will exit with status 1d - the double to logo - the Object to send with the messagepublic final void fatal(float f,
java.lang.Object o)
float to the logger, with fatal status.
Program will exit with status 1f - the float to logo - the Object to send with the messagepublic final void fatal(int i,
java.lang.Object o)
int to the logger, with fatal status.
Program will exit with status 1i - the int to logo - the Object to send with the messagepublic final void fatal(long l,
java.lang.Object o)
long to the logger, with fatal status.
Program will exit with status 1l - the long to logo - the Object to send with the messagepublic final void fatal(java.lang.String s)
String to the logger, with fatal status.
Program will exit with status 1s - the String to logprivate final void fatal_imp(java.lang.String s,
java.lang.Object o)
s - the so - the opublic abstract void fatal(java.lang.String s,
java.lang.Object o)
String to the logger, with fatal status.
Program will exit with status 1s - the String to logo - the Object to send with the message