public class GrouperLoaderLogger extends Object
Constructor and Description |
---|
GrouperLoaderLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
addLogEntry(String label,
String key,
Object value)
add log entry
|
static void |
assignOverallId(String overallId) |
static void |
assignSubjobId(String subjobId) |
static void |
doTheLogging(String label) |
static boolean |
initializeThreadLocalMap(String label)
when loader thing starts
|
static boolean |
initializeThreadLocalMap(String label,
Map<String,Object> existingMap)
when loader thing starts
|
static boolean |
isLoggerEnabled()
is debug enabled
|
static void |
removeThreadLocalMaps()
done with thread local map
|
static Map<String,Object> |
retrieveMap(String label)
get a map or create it
|
static String |
retrieveOverallId() |
static String |
retrieveSubjobId() |
static void |
skipLogging(String label) |
public static boolean isLoggerEnabled()
public static void removeThreadLocalMaps()
public static void assignOverallId(String overallId)
overallId
- public static void assignSubjobId(String subjobId)
subjobId
- public static String retrieveOverallId()
public static String retrieveSubjobId()
public static boolean initializeThreadLocalMap(String label, Map<String,Object> existingMap)
label
- existingMap
- public static boolean initializeThreadLocalMap(String label)
label
- public static Map<String,Object> retrieveMap(String label)
label
- public static void addLogEntry(String label, String key, Object value)
label
- the type of log, e.g. overallLogkey
- key of logvalue
- valuepublic static void doTheLogging(String label)
label
- is the type of logger
log something to the log filepublic static void skipLogging(String label)
label
- is the type of logger
log something to the log fileCopyright © 2016 Internet2. All rights reserved.