-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[v6] utils Logging #2526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v6] utils Logging #2526
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2526 +/- ##
==========================================
+ Coverage 88.78% 89.39% +0.61%
==========================================
Files 111 110 -1
Lines 3431 3279 -152
==========================================
- Hits 3046 2931 -115
+ Misses 385 348 -37 |
docs/utils/quick-start.md
Outdated
enableEventLogging: true, | ||
}); | ||
|
||
// config = { enableMethodLogging: true, enableEventLogging: ture } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ture
-> true
docs/utils/quick-start.md
Outdated
|
||
### Enable logging | ||
|
||
You can enable logging for native method calls and event streams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Period/semi-colon on the end
docs/utils/quick-start.md
Outdated
|
||
### Log out custom information | ||
|
||
You can also use our built in logger to log your custom information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Period/semi-colon on the end
@@ -240,6 +240,7 @@ export namespace ReactNativeFirebase { | |||
*/ | |||
export namespace Utils { | |||
import FirebaseModule = ReactNativeFirebase.FirebaseModule; | |||
type LoggerConfig = { enableMethodLogging: boolean; enableEventLogging: boolean }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will get added to the docs so worth having a quick description above it.
Work in progress:
I tried to make it nice ¯_(ツ)_/¯