Package util
Class Logger
- java.lang.Object
-
- util.Logger
-
public class Logger extends Object
Logger Class to print to system.out Singleton
-
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
error(String string)
Print an error messagestatic Logger
getInstance()
static void
info(String string)
Print an info messagestatic void
infoDetailed(String string)
Print an detailed info message Only printed if in detailed modestatic void
setActive(boolean isActive)
Function to enable Loggerstatic void
setDetailed(boolean isDetailed)
Enable more detailed logging
-
-
-
Method Detail
-
getInstance
public static Logger getInstance()
-
setActive
public static void setActive(boolean isActive)
Function to enable Logger- Parameters:
isActive
- enable or disable
-
setDetailed
public static void setDetailed(boolean isDetailed)
Enable more detailed logging- Parameters:
isDetailed
- enable or disable
-
error
public static void error(String string)
Print an error message- Parameters:
string
- message
-
info
public static void info(String string)
Print an info message- Parameters:
string
- message
-
infoDetailed
public static void infoDetailed(String string)
Print an detailed info message Only printed if in detailed mode- Parameters:
string
- message
-
-