public class Logger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<Section,java.util.logging.Logger> |
logger |
private static java.util.HashMap<java.lang.String,Logger> |
LOGGER_DIRECTORY |
private java.lang.String |
name |
private static LoggerConfiguration |
standardConfiguration |
Modifier | Constructor and Description |
---|---|
protected |
Logger(java.lang.String name,
LoggerConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message,
Section section)
Logt eine Debug Message, welche zusätzlich einer bestimmten Section zugewiesen wird.
|
void |
error(java.lang.String message,
Section s) |
static Logger |
getLogger(java.lang.String name)
Liefert den Logger mit dem angegebenen Namen.
|
static SectionLogger |
getSectionLogger(java.lang.String name,
Section s) |
void |
info(java.lang.String message,
Section s) |
protected void |
output(java.lang.String msg,
java.util.logging.Level logLevel,
Section section) |
static void |
setStandardConfiguration(LoggerConfiguration config)
wird hier null übergeben, so wird sämtliches Logging unterdrückt.
|
private static LoggerConfiguration standardConfiguration
private static final java.util.HashMap<java.lang.String,Logger> LOGGER_DIRECTORY
private java.lang.String name
private final java.util.HashMap<Section,java.util.logging.Logger> logger
protected Logger(java.lang.String name, LoggerConfiguration config)
public void debug(java.lang.String message, Section section)
message
- section
- public static Logger getLogger(java.lang.String name)
name
- - Name der Klasse ( Ermittelbar mittels public static SectionLogger getSectionLogger(java.lang.String name, Section s)
protected void output(java.lang.String msg, java.util.logging.Level logLevel, Section section)
public void info(java.lang.String message, Section s)
public void error(java.lang.String message, Section s)
public static void setStandardConfiguration(LoggerConfiguration config)