Package net.ME1312.Galaxi.Log
Class Logger
java.lang.Object
net.ME1312.Galaxi.Log.Logger
Logger Class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a filter to this loggerstatic void
addStaticFilter
(LogFilter filter) Add a filter to all loggersstatic Logger
Get a static loggerGet the stream by Log LevelGet the prefix this logger usesvoid
removeFilter
(LogFilter filter) Remove a filter from this loggerstatic void
removeStaticFilter
(LogFilter filter) Remove a static filterGet this logger as a standard Java Logger
-
Field Details
-
debug
-
message
-
info
-
success
-
warn
-
error
-
severe
-
-
Constructor Details
-
Logger
Creates a new Logger- Parameters:
prefix
- Log Prefix
-
-
Method Details
-
get
Get a static logger- Parameters:
prefix
- Log Prefix- Returns:
- Logger
-
get
Get the stream by Log Level- Parameters:
level
- Log Level- Returns:
- Log Stream
-
toPrimitive
Get this logger as a standard Java Logger- Returns:
- Standard Java Logger
-
getPrefix
Get the prefix this logger uses- Returns:
- Logger Prefix
-
addFilter
Add a filter to this logger- Parameters:
filter
- Log Filter
-
removeFilter
Remove a filter from this logger- Parameters:
filter
- Log Filter
-
addStaticFilter
Add a filter to all loggers- Parameters:
filter
- Static Log Filter
-
removeStaticFilter
Remove a static filter- Parameters:
filter
- Static Log Filter
-