Package de.hirola.sportslibrary.util
Class Logger
- java.lang.Object
-
- de.hirola.sportslibrary.util.Logger
-
public final class Logger extends Object
Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Layer for logging of library. Encapsulated the use of logging tools.- Since:
- 1.1.1
- Author:
- Michael Schmidt (Hirola)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String tag, String message, @Nullable Exception exception)Create an debug log entry.voiderror(String tag, String message, @Nullable Exception exception)Create an error log entry.static LoggergetInstance(String logFileName)Get an instance of logger.voidinfo(String tag, String message, @Nullable Exception exception)Create an info log entry.voidwarning(String tag, String message, @Nullable Exception exception)Create an info log entry.
-
-
-
Method Detail
-
getInstance
public static Logger getInstance(String logFileName)
Get an instance of logger.- Parameters:
logFileName- name of the log file- Returns:
- The logger object for logging.
-
info
public void info(String tag, String message, @Nullable @Nullable Exception exception)
Create an info log entry.- Parameters:
tag- source of log entrymessage- log messageexception- log exception
-
warning
public void warning(String tag, String message, @Nullable @Nullable Exception exception)
Create an info log entry.- Parameters:
tag- source of log entrymessage- log messageexception- log exception
-
error
public void error(String tag, String message, @Nullable @Nullable Exception exception)
Create an error log entry.- Parameters:
tag- source of log entrymessage- log messageexception- log exception
-
-