Skip to content

Commit

Permalink
Fix Build of RNLog in CI
Browse files Browse the repository at this point in the history
Summary:
Fix Build of RNLog in CI

changelog: [internal] internal

Reviewed By: bvanderhoof

Differential Revision: D54167011

fbshipit-source-id: 7e1ea21860b479e9fe00df5951fe266f2e342eda
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 25, 2024
1 parent 1947fef commit 12f2c3c
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ import com.facebook.react.bridge.ReactContext
import com.facebook.react.common.ReactConstants

/** Logging wrapper for FLog with LogBox support. */
object RNLog {
public object RNLog {

const val MINIMUM_LEVEL_FOR_UI = Log.WARN
const val LOG = Log.VERBOSE
const val TRACE = Log.DEBUG
const val ADVICE = Log.INFO
const val WARN = Log.WARN
const val ERROR = Log.ERROR
public const val MINIMUM_LEVEL_FOR_UI: Int = Log.WARN
public const val LOG: Int = Log.VERBOSE
public const val TRACE: Int = Log.DEBUG
public const val ADVICE: Int = Log.INFO
public const val WARN: Int = Log.WARN
public const val ERROR: Int = Log.ERROR

/**
* Log a log level message tagged as React Native to the console.
*
* @param message The message to log.
*/
@JvmStatic
fun l(message: String) {
public fun l(message: String) {
FLog.i(ReactConstants.TAG, message)
}

Expand All @@ -38,7 +38,7 @@ object RNLog {
* @param message The message to log.
*/
@JvmStatic
fun t(message: String) {
public fun t(message: String) {
FLog.i(ReactConstants.TAG, message)
}

Expand All @@ -49,7 +49,7 @@ object RNLog {
* @param message The message to log.
*/
@JvmStatic
fun a(message: String) {
public fun a(message: String) {
FLog.w(ReactConstants.TAG, "(ADVICE)$message")
}

Expand All @@ -60,7 +60,7 @@ object RNLog {
* @param message The message to log.
*/
@JvmStatic
fun w(context: ReactContext?, message: String) {
public fun w(context: ReactContext?, message: String) {
logInternal(context, message, WARN)
FLog.w(ReactConstants.TAG, message)
}
Expand All @@ -72,7 +72,7 @@ object RNLog {
* @param message The message to log.
*/
@JvmStatic
fun e(context: ReactContext?, message: String) {
public fun e(context: ReactContext?, message: String) {
logInternal(context, message, ERROR)
FLog.e(ReactConstants.TAG, message)
}
Expand All @@ -84,7 +84,7 @@ object RNLog {
* @param message The message to log.
*/
@JvmStatic
fun e(message: String) {
public fun e(message: String) {
FLog.e(ReactConstants.TAG, message)
}

Expand Down

0 comments on commit 12f2c3c

Please sign in to comment.