-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug message in MainApplication.
- Loading branch information
hotchemi
committed
Mar 20, 2019
1 parent
9f8217e
commit d00c1ac
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
|
||
import com.facebook.react.ReactApplication; | ||
import com.horcrux.svg.SvgPackage; | ||
|
||
import org.wordpress.android.util.AppLog; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hotchemi
Contributor
|
||
import org.wordpress.mobile.ReactNativeAztec.ReactAztecPackage; | ||
import org.wordpress.mobile.ReactNativeGutenbergBridge.GutenbergBridgeJS2Parent; | ||
import org.wordpress.mobile.ReactNativeGutenbergBridge.RNReactNativeGutenbergBridgePackage; | ||
|
@@ -60,7 +62,22 @@ public void requestImageUploadCancel(int mediaId) {} | |
public void editorDidMount(boolean hasUnsupportedBlocks) {} | ||
|
||
@Override | ||
public void nativeLoggingHook(String message, LogLevel logLevel) {} | ||
public void nativeLoggingHook(String message, LogLevel logLevel) { | ||
switch (logLevel) { | ||
case TRACE: | ||
AppLog.d(AppLog.T.EDITOR, message); | ||
break; | ||
case INFO: | ||
AppLog.i(AppLog.T.EDITOR, message); | ||
break; | ||
case WARN: | ||
AppLog.w(AppLog.T.EDITOR, message); | ||
break; | ||
case ERROR: | ||
AppLog.e(AppLog.T.EDITOR, message); | ||
break; | ||
} | ||
} | ||
}) | ||
); | ||
} | ||
|
👋 @hotchemi , I wonder if there's a particular reason for using
AppLog
instead of Android'sLog
. Can you elaborate? Thanks!