Package com.h2tcoin.takamakachain.utils
Class Log
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.Log
-
public class Log extends Object
This class handles logging information.
-
-
Constructor Summary
Constructors Constructor Description Log()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeHandlers()
static void
EnableConsoleLogging(Boolean enable)
static Log
getInstance()
static Level
getLoggerLevel()
static String
getLogLevel()
static Level
getLogNodeLevel()
static Level
getLogRestLevel()
static Level
getLogWalletLevel()
static void
log(Level level, String message)
Append to application logLOGGER
static void
log(Level level, String message, FixedParameters.LogType logType)
Append to specific application logstatic void
logStacktrace(Level level, Exception ex)
Append exception to application logLOGGER
static void
logStacktrace(Level level, Exception ex, FixedParameters.LogType logType)
Append exception to specific application logstatic void
resetLogger()
static void
setLogLevel(Level level)
static void
startupMessage()
Print info message in log
-
-
-
Method Detail
-
getInstance
public static Log getInstance()
- Returns:
-
closeHandlers
public static void closeHandlers()
-
resetLogger
public static void resetLogger()
-
EnableConsoleLogging
public static void EnableConsoleLogging(Boolean enable)
- Parameters:
enable
-
-
setLogLevel
public static void setLogLevel(Level level)
- Parameters:
level
-
-
getLogLevel
public static String getLogLevel()
-
getLoggerLevel
public static Level getLoggerLevel()
-
getLogNodeLevel
public static Level getLogNodeLevel()
-
getLogRestLevel
public static Level getLogRestLevel()
-
getLogWalletLevel
public static Level getLogWalletLevel()
-
startupMessage
public static void startupMessage() throws UnknownHostException
Print info message in log- Throws:
UnknownHostException
-
log
public static void log(Level level, String message)
Append to application logLOGGER
- Parameters:
level
-message
-
-
log
public static void log(Level level, String message, FixedParameters.LogType logType)
Append to specific application log- Parameters:
level
-message
-logType
-
-
logStacktrace
public static void logStacktrace(Level level, Exception ex)
Append exception to application logLOGGER
- Parameters:
level
-ex
-
-
logStacktrace
public static void logStacktrace(Level level, Exception ex, FixedParameters.LogType logType)
Append exception to specific application log- Parameters:
level
-ex
-logType
-
-
-