public final class C4Log extends Object
Modifier and Type | Class and Description |
---|---|
static class |
C4Log.RawLog |
Modifier and Type | Method and Description |
---|---|
static void |
forceCallbackLevel(LogLevel logLevel) |
static int |
getBinaryFileLevel() |
static int |
getLevel(String domain) |
static void |
log(String domain,
int level,
String message) |
static void |
logCallback(String c4Domain,
int c4Level,
String message) |
static void |
registerListener(Fn.Consumer<C4Log.RawLog> listener) |
static void |
setBinaryFileLevel(int level) |
static void |
setCallbackLevel(LogLevel consoleLevel) |
static void |
setLevels(int level,
String... domains) |
static void |
writeToBinaryFile(String path,
int level,
int maxRotateCount,
long maxSize,
boolean usePlaintext,
String header) |
public static void registerListener(Fn.Consumer<C4Log.RawLog> listener)
public static void setLevels(int level, String... domains)
public static void forceCallbackLevel(@NonNull LogLevel logLevel)
public static void setCallbackLevel(@NonNull LogLevel consoleLevel)
public static int getBinaryFileLevel()
public static void setBinaryFileLevel(int level)
public static void writeToBinaryFile(String path, int level, int maxRotateCount, long maxSize, boolean usePlaintext, String header)
public static int getLevel(String domain)