Package com.couchbase.lite.internal.core
Class C4Log
- java.lang.Object
-
- com.couchbase.lite.internal.core.C4Log
-
public final class C4Log extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
C4Log.RawLog
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
forceCallbackLevel(LogLevel logLevel)
static int
getBinaryFileLevel()
static LogLevel
getCallbackLevel()
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)
-
-
-
Method Detail
-
registerListener
public static void registerListener(Fn.Consumer<C4Log.RawLog> listener)
-
logCallback
public static void logCallback(@NonNull String c4Domain, int c4Level, @NonNull String message)
-
setLevels
public static void setLevels(int level, @Nullable String... domains)
-
getCallbackLevel
@NonNull public static LogLevel getCallbackLevel()
-
setCallbackLevel
public static void setCallbackLevel(@NonNull LogLevel consoleLevel)
-
forceCallbackLevel
public static void forceCallbackLevel(@NonNull LogLevel logLevel)
-
getBinaryFileLevel
public static int getBinaryFileLevel()
-
setBinaryFileLevel
public static void setBinaryFileLevel(int level)
-
writeToBinaryFile
public static void writeToBinaryFile(String path, int level, int maxRotateCount, long maxSize, boolean usePlaintext, String header)
-
getLevel
public static int getLevel(String domain)
-
-