Class GrouperLoaderLogger
java.lang.Object
edu.internet2.middleware.grouper.app.loader.GrouperLoaderLogger
logger for loader events
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLogEntry
(String label, String key, Object value) add log entrystatic void
assignOverallId
(String overallId) static void
assignSubjobId
(String subjobId) static void
doTheLogging
(String label) static boolean
initializeThreadLocalMap
(String label) when loader thing startsstatic boolean
initializeThreadLocalMap
(String label, Map<String, Object> existingMap) when loader thing startsstatic boolean
is debug enabledstatic void
done with thread local mapretrieveMap
(String label) get a map or create itstatic String
static String
static void
skipLogging
(String label)
-
Constructor Details
-
GrouperLoaderLogger
public GrouperLoaderLogger()
-
-
Method Details
-
isLoggerEnabled
public static boolean isLoggerEnabled()is debug enabled- Returns:
- true if enabled
-
removeThreadLocalMaps
public static void removeThreadLocalMaps()done with thread local map -
assignOverallId
- Parameters:
overallId
-
-
assignSubjobId
- Parameters:
subjobId
-
-
retrieveOverallId
- Returns:
- the overall id
-
retrieveSubjobId
- Returns:
- the sub log id
-
initializeThreadLocalMap
when loader thing starts- Parameters:
label
-existingMap
-- Returns:
- false if already initted
-
initializeThreadLocalMap
when loader thing starts- Parameters:
label
-- Returns:
- false if already initted
-
retrieveMap
get a map or create it- Parameters:
label
-- Returns:
- the map
-
addLogEntry
add log entry- Parameters:
label
- the type of log, e.g. overallLogkey
- key of logvalue
- value
-
doTheLogging
- Parameters:
label
- is the type of logger log something to the log file
-
skipLogging
- Parameters:
label
- is the type of logger log something to the log file
-