mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
1.3 KiB
1.3 KiB
Google Data Transport Lib
This library is for internal Google use only. It allows the logging of data and telemetry from Google SDKs.
Set logging level
Swift
- Import
GoogleDataTransportmodule:import GoogleDataTransport - Set logging level global variable to the desired value before calling
FirebaseApp.config():GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevel.debug.rawValue
Objective-C
- Import
GoogleDataTransport:#import <GoogleDataTransport/GoogleDataTransport.h> - Set logging level global variable to the desired value before calling
-[FIRApp config]:GDTCORConsoleLoggerLoggingLevel = GDTCORLoggingLevelDebug;
Prereqs
gem install --user cocoapods cocoapods-generatebrew install protobuf nanopb-generatoreasy_install --user protobuf
To develop
- Run
generate_project.shafter installing the prereqs
When adding new logging endpoint
- Use commands similar to:
python -c "line='https://www.firebase.com'; print line[0::2]"python -c "line='https://www.firebase.com'; print line[1::2]"
When adding internal code that shouldn't be easily usable on github
- Consider using go/copybara-library/scrubbing#cc_scrub