Skip to content

Commit

Permalink
Merge pull request #471 from 0xflotus/patch-1
Browse files Browse the repository at this point in the history
fixed some code typos
  • Loading branch information
garryyan committed Oct 22, 2018
2 parents e8b5773 + 40c11c6 commit 4396e75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -86,11 +86,11 @@ final String cachePath = this.getFilesDir() + "/xlog"

//init xlog
if (BuildConfig.DEBUG) {
Xlog.appenderOpen(Xlog.LEVEL_DEBUG, Xlog.AppednerModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.appenderOpen(Xlog.LEVEL_DEBUG, Xlog.AppenderModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.setConsoleLogOpen(true);

} else {
Xlog.appenderOpen(Xlog.LEVEL_INFO, Xlog.AppednerModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.appenderOpen(Xlog.LEVEL_INFO, Xlog.AppenderModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.setConsoleLogOpen(false);
}

Expand Down Expand Up @@ -249,7 +249,7 @@ Initialize STN before you use it:
}

- (void)reportEvent_OnForeground:(BOOL)isForeground {
mars::baseevent::OnForeground(isForground);
mars::baseevent::OnForeground(isForeground);
}

- (void)makesureLongLinkConnect {
Expand All @@ -273,7 +273,7 @@ When the App's state of background or foreground is changed:

```objc
- (void)reportEvent_OnForeground:(BOOL)isForeground {
mars::baseevent::OnForeground(isForground);
mars::baseevent::OnForeground(isForeground);
}
```

Expand Down Expand Up @@ -466,11 +466,11 @@ final String cachePath = this.getFilesDir() + "/xlog"

//init xlog
if (BuildConfig.DEBUG) {
Xlog.appenderOpen(Xlog.LEVEL_DEBUG, Xlog.AppednerModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.appenderOpen(Xlog.LEVEL_DEBUG, Xlog.AppenderModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.setConsoleLogOpen(true);

} else {
Xlog.appenderOpen(Xlog.LEVEL_INFO, Xlog.AppednerModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.appenderOpen(Xlog.LEVEL_INFO, Xlog.AppenderModeAsync, cachePath, logPath, "MarsSample", "");
Xlog.setConsoleLogOpen(false);
}

Expand Down

0 comments on commit 4396e75

Please sign in to comment.