public abstract class IzouModule extends Object implements MainProvider, Identifiable
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.spi.AbstractLogger |
log |
protected Main |
main |
Constructor and Description |
---|
IzouModule(Main main) |
IzouModule(Main main,
boolean register) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String msg)
Used to log messages at debug level
|
void |
debug(String msg,
Throwable e)
Used to log messages at debug level
|
void |
error(String msg)
Used to log messages at error level
|
void |
error(String msg,
Throwable e)
Used to log messages at error level
|
void |
fatal(String msg)
Used to log messages at fatal level
|
void |
fatal(String msg,
Throwable e)
Used to log messages at fatal level
|
String |
getID()
An ID must always be unique.
|
Main |
getMain()
returns the instance of Main
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOwner
protected final org.apache.logging.log4j.spi.AbstractLogger log
public IzouModule(Main main)
public IzouModule(Main main, boolean register)
public Main getMain()
getMain
in interface MainProvider
public void debug(String msg, Throwable e)
debug
in interface MainProvider
msg
- the messagee
- the Throwablepublic void debug(String msg)
debug
in interface MainProvider
msg
- the messagepublic void error(String msg, Throwable e)
error
in interface MainProvider
msg
- the messagee
- the Throwablepublic void error(String msg)
error
in interface MainProvider
msg
- the messagepublic void fatal(String msg)
fatal
in interface MainProvider
msg
- the messagepublic void fatal(String msg, Throwable e)
fatal
in interface MainProvider
msg
- the messagee
- the Throwablepublic String getID()
getID
in interface Identifiable
Copyright © 2016. All rights reserved.