Package com.github.tadukoo.util.logger
Class EasyLogger
java.lang.Object
com.github.tadukoo.util.logger.EasyLogger
EasyLogger is a wrapper around
Logger
that provides methods to simplify logging operations- Version:
- Alpha v.0.2
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
logDebugFine
(String debug) Logs the given debug message to theLogger
atLevel.FINE
void
logDebugFine
(String debug, Throwable t) void
void
logDebugFiner
(String debug) Logs the given debug message to theLogger
atLevel.FINER
void
logDebugFiner
(String debug, Throwable t) void
void
logDebugFinest
(String debug) Logs the given debug message to theLogger
atLevel.FINEST
void
logDebugFinest
(String debug, Throwable t) void
void
void
void
void
void
void
void
logWarning
(String warning) void
logWarning
(String warning, Throwable t) void
-
Field Details
-
logger
TheLogger
wrapped in this EasyLogger
-
-
Constructor Details
-
Method Details
-
getLogger
- Returns:
- The
Logger
wrapped in this class if you want to call other methods
-
logInfo
- Parameters:
info
- The message to be logged
-
logInfo
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged asinfo
- Parameters:
t
- TheThrowable
to be logged
-
logInfo
- Parameters:
info
- The message to be loggedt
- TheThrowable
to be logged
-
logWarning
- Parameters:
warning
- The message to be logged
-
logWarning
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged as awarning
- Parameters:
t
- TheThrowable
to be logged
-
logWarning
- Parameters:
warning
- The message to be loggedt
- TheThrowable
to be logged
-
logError
- Parameters:
error
- The message to be logged
-
logError
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged as anerror
- Parameters:
t
- TheThrowable
to be logged
-
logError
- Parameters:
error
- The message to be loggedt
- TheThrowable
to be logged
-
logConfig
- Parameters:
config
- The message to be logged
-
logConfig
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged as aconfig
message- Parameters:
t
- TheThrowable
to be logged
-
logConfig
- Parameters:
config
- The message to be loggedt
- TheThrowable
to be logged
-
logDebugFine
Logs the given debug message to theLogger
atLevel.FINE
- Parameters:
debug
- The message to be logged
-
logDebugFine
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged atLevel.FINE
- Parameters:
t
- TheThrowable
to be logged
-
logDebugFine
- Parameters:
debug
- The message to be loggedt
- TheThrowable
to be logged
-
logDebugFiner
Logs the given debug message to theLogger
atLevel.FINER
- Parameters:
debug
- The message to be logged
-
logDebugFiner
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged atLevel.FINER
- Parameters:
t
- TheThrowable
to be logged
-
logDebugFiner
- Parameters:
debug
- The message to be loggedt
- TheThrowable
to be logged
-
logDebugFinest
Logs the given debug message to theLogger
atLevel.FINEST
- Parameters:
debug
- The message to be logged
-
logDebugFinest
Logs the givenThrowable
to theLogger
. UsesThrowable.getMessage()
as the message on the log entry. This entry is logged atLevel.FINEST
- Parameters:
t
- TheThrowable
to be logged
-
logDebugFinest
- Parameters:
debug
- The message to be loggedt
- TheThrowable
to be logged
-