Package no.nav.common.log
Class LogUtils
- java.lang.Object
-
- no.nav.common.log.LogUtils
-
public class LogUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description LogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarkerBuilderbuildMarker()static List<ch.qos.logback.classic.Logger>getAllLoggers()static ch.qos.logback.classic.LevelgetRootLevel()static voidrunWithMDCContext(Map<String,String> mdcContext, UnsafeRunnable runnable)static <T> TrunWithMDCContext(Map<String,String> mdcContext, UnsafeSupplier<T> supplier)static voidsetGlobalLogLevel(ch.qos.logback.classic.Level newLevel)static voidshutDownLogback()
-
-
-
Field Detail
-
ROOT
public static final String ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
runWithMDCContext
public static void runWithMDCContext(Map<String,String> mdcContext, UnsafeRunnable runnable)
-
runWithMDCContext
public static <T> T runWithMDCContext(Map<String,String> mdcContext, UnsafeSupplier<T> supplier)
-
setGlobalLogLevel
public static void setGlobalLogLevel(ch.qos.logback.classic.Level newLevel)
-
shutDownLogback
public static void shutDownLogback()
-
getAllLoggers
public static List<ch.qos.logback.classic.Logger> getAllLoggers()
-
getRootLevel
public static ch.qos.logback.classic.Level getRootLevel()
-
buildMarker
public static MarkerBuilder buildMarker()
-
-