public final class LogUtils extends Object
Modifier and Type | Method and Description |
---|---|
static LogCapture |
captureLog(String pattern)
Capture log for the given pattern with a simple appender.
|
static void |
decreaseLogging(String pattern) |
static LogPatternLevel |
getLevel(String pattern) |
static void |
increaseLogging(String pattern) |
static void |
loadLogbackConfigurationFile(String fileName)
Loads the logback configuration from a file on the class path.
|
static LogPatternLevel |
setLevel(LogPatternLevel logPatternLevel) |
static LogPatternLevel |
setLevel(String pattern,
int level) |
static LogPatternLevel |
setLevelOff(String pattern) |
static void |
stopCapture(LogCapture logCapture)
Stop capturing the log via the given appender for the given pattern.
|
public static void decreaseLogging(String pattern)
public static void increaseLogging(String pattern)
public static LogPatternLevel getLevel(String pattern)
public static LogPatternLevel setLevel(LogPatternLevel logPatternLevel)
public static LogPatternLevel setLevel(String pattern, int level)
public static LogPatternLevel setLevelOff(String pattern)
public static LogCapture captureLog(String pattern)
pattern
- log pattern to capturepublic static void stopCapture(LogCapture logCapture)
logCapture
- log capturepublic static void loadLogbackConfigurationFile(String fileName)
fileName
- a file name (on the classpath) to load the logback configuration from.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries