public class LLogger
extends java.lang.Object
Constructor and Description |
---|
LLogger(java.lang.String debugPath) |
Modifier and Type | Method and Description |
---|---|
void |
addSpecial(java.lang.Enum key,
java.lang.String filePath)
Adds a special log tied to the Enum key, that can be exported to by using
that key.
|
void |
close()
Closes all associated Debug files.
|
void |
flush()
Forces all logs to export their buffers.
|
void |
log(java.lang.String header,
java.lang.String... log)
Logs to the asynchronous log.
|
void |
logError(java.lang.String header,
java.lang.String... log)
Logs an error message on both to the sync log and to the main overview
log.
|
void |
logException(java.lang.Throwable e)
Used for printing exception stack data to logs.
|
boolean |
logging() |
void |
logging(java.lang.Boolean on)
Turns the LLogger on/off.
|
boolean |
loggingAsync() |
void |
loggingAsync(java.lang.Boolean on)
Turns the LLogger async log on/off.
|
boolean |
loggingSync() |
void |
loggingSync(java.lang.Boolean on)
Turns the LLogger sync log on/off.
|
void |
logMain(java.lang.String header,
java.lang.String... log)
Outputs a message to the main debug overview log.
|
void |
logSpecial(java.lang.Enum e,
java.lang.String header,
java.lang.String... log)
Logs to a special log based on the given enum.
|
void |
logSync(java.lang.String header,
java.lang.String... log)
A function that will log messages to the synchronized log if the syncing
flag is on.
|
void |
newLog(java.lang.String filePath)
Creates a new asynchronous log.
|
void |
newSyncLog(java.lang.String filePath)
Creates a new sync log in the desired location.
|
void |
setAllLogging(boolean in)
A global switch that allows/blocks all LLoggers to output.
|
boolean |
sync() |
void |
sync(boolean on)
Turn the synchronized logging on/off.
|
public LLogger(java.lang.String debugPath)
debugPath
- Path to create a LLogger debug package.public void addSpecial(java.lang.Enum key, java.lang.String filePath)
key
- Key to add the special log underfilePath
- Path to give the special log.public void logSync(java.lang.String header, java.lang.String... log)
header
- log
- public void newSyncLog(java.lang.String filePath)
filePath
- public void sync(boolean on)
on
- public boolean sync()
public void logMain(java.lang.String header, java.lang.String... log)
header
- log
- public void logError(java.lang.String header, java.lang.String... log)
header
- log
- public boolean logging()
public void logging(java.lang.Boolean on)
on
- public boolean loggingSync()
public void loggingSync(java.lang.Boolean on)
on
- public boolean loggingAsync()
public void loggingAsync(java.lang.Boolean on)
on
- public void logException(java.lang.Throwable e)
e
- Exception to print.public void setAllLogging(boolean in)
in
- public void flush()
public void logSpecial(java.lang.Enum e, java.lang.String header, java.lang.String... log)
e
- Enum key to log to.header
- log
- public void log(java.lang.String header, java.lang.String... log)
header
- log
- public void newLog(java.lang.String filePath)
filePath
- public void close()