Skip to content

Commit b612f94

Browse files
authored
CBL-7612 : Exposing _log APi for React Native (#442)
* CBL-7612 : Exposing _log APi for React Native * Updated from _log to log
1 parent e79ebda commit b612f94

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • common/main/java/com/couchbase/lite/internal/logging

common/main/java/com/couchbase/lite/internal/logging/Log.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.couchbase.lite.LogDomain;
3232
import com.couchbase.lite.LogLevel;
3333
import com.couchbase.lite.internal.CouchbaseLiteInternal;
34+
import com.couchbase.lite.internal.utils.Internal;
3435

3536

3637
/**
@@ -43,6 +44,7 @@
4344
* v: used by core: please do not use in platform coded.
4445
* d: low-level debugging information
4546
*/
47+
@Internal("This class is not part of the public API")
4648
@SuppressWarnings("PMD.TooManyMethods")
4749
public final class Log {
4850
private Log() { } // Utility class
@@ -119,10 +121,6 @@ public static void i(@NonNull LogDomain domain, @NonNull String msg, @Nullable T
119121
log(LogLevel.INFO, domain, err, msg);
120122
}
121123

122-
public static void info(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err) {
123-
i(domain, msg, err);
124-
}
125-
126124
/**
127125
* Send an INFO message.
128126
*
@@ -254,7 +252,8 @@ public static void setStandardErrorMessages(@NonNull Map<String, String> stdErrM
254252
errorMessages = Collections.unmodifiableMap(new HashMap<>(stdErrMsgs));
255253
}
256254

257-
private static void log(
255+
/* <Unsupported API> Internal used for testing purpose. */
256+
public static void log(
258257
@NonNull LogLevel level,
259258
@NonNull LogDomain domain,
260259
@Nullable Throwable err,

0 commit comments

Comments
 (0)