Class LogManager
Inheritance
java.lang.Object
LogManager
Syntax
Fields
fileHandler
Declaration
public static FileHandler fileHandler
Field Value
Methods
addAllowedLevel(LogLevel l)
Declaration
public static synchronized void addAllowedLevel(LogLevel l)
Parameters
Returns
Type |
Description |
synchronized void |
|
addFileHandler(int maxLines)
Declaration
public static synchronized void addFileHandler(int maxLines)
Parameters
Type |
Name |
Description |
int |
maxLines |
|
Returns
Type |
Description |
synchronized void |
|
getCurrentLevel()
Declaration
public static LogLevel getCurrentLevel()
Returns
getCurrentTimeAndDate()
Declaration
public static String getCurrentTimeAndDate()
Returns
getLogger(Class<T> s)
Declaration
public static synchronized<T> Logger getLogger(Class<T> s)
Parameters
Type |
Name |
Description |
Class<T> |
s |
|
Returns
Type |
Description |
synchronized<T> Logger |
|
getLogger(String className)
Declaration
public static synchronized Logger getLogger(String className)
Parameters
Type |
Name |
Description |
String |
className |
|
Returns
Type |
Description |
synchronized Logger |
|
getLoggers()
Declaration
public static Map<String, Logger> getLoggers()
Returns
Type |
Description |
Map<String, Logger> |
|
isLevelAllowed(LogLevel l)
Declaration
public static synchronized boolean isLevelAllowed(LogLevel l)
Parameters
Returns
Type |
Description |
synchronized boolean |
|
removeAllowedLevel(LogLevel l)
Declaration
public static synchronized void removeAllowedLevel(LogLevel l)
Parameters
Returns
Type |
Description |
synchronized void |
|
setCurrentLevel(LogLevel currentLevel)
Declaration
public static void setCurrentLevel(LogLevel currentLevel)
Parameters
Type |
Name |
Description |
LogLevel |
currentLevel |
|
setFileHandler(FileHandler fileHandler)
Declaration
public static void setFileHandler(FileHandler fileHandler)
Parameters
setLoggers(HashMap<String, Logger> loggers)
Declaration
public static void setLoggers(HashMap<String, Logger> loggers)
Parameters
Type |
Name |
Description |
HashMap<String, Logger> |
loggers |
|
setLogLevel(LogLevel l)
Declaration
public static void setLogLevel(LogLevel l)
Parameters