Skip to content

Commit 94fb0d1

Browse files
GDT readme: log level configuration (#6513)
* GDT readme: log level configuration * Typo fix * Trailing whitespaces
1 parent b89529a commit 94fb0d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

GoogleDataTransport/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
This library is for internal Google use only. It allows the logging of data and
44
telemetry from Google SDKs.
55

6+
## Set logging level
7+
8+
### Swift
9+
10+
- Import `GoogleDataTransport` module:
11+
```
12+
import GoogleDataTransport
13+
```
14+
- Set logging level global variable to the desired value before calling `FirebaseApp.config()`:
15+
```
16+
GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevel.debug.rawValue
17+
```
18+
### Objective-C
19+
20+
- Import `GoogleDataTransport`:
21+
```
22+
#import <GoogleDataTransport/GoogleDataTransport.h>
23+
```
24+
- Set logging level global variable to the desired value before calling `-[FIRApp config]`:
25+
```
26+
GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevelDebug;
27+
```
28+
629
## Prereqs
730
831
- `gem install --user cocoapods cocoapods-generate`

0 commit comments

Comments
 (0)