Maksym Malyhin b05be68db1 GDTCCTUploader: lazy initialize url session, use ephemeral session (#6870) 5 years ago
..
GDTCCTLibrary b05be68db1 GDTCCTUploader: lazy initialize url session, use ephemeral session (#6870) 5 years ago
GDTCCTTestApp e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 years ago
GDTCCTTests bde8e07844 GDT: move some headers from public to internal (#6643) 5 years ago
GDTCCTWatchOSTestApp 4507ad146b Fix CI/regression - update for change FCM API (#6699) 5 years ago
GDTCORLibrary bff6b664d1 Merge release-6.34.0 branch after patch (#6701) 5 years ago
GDTCORTests bde8e07844 GDT: move some headers from public to internal (#6643) 5 years ago
GDTTestApp a00703a543 Completely reimplement storage in GDT (#5877) 5 years ago
GDTWatchOSTestApp bde8e07844 GDT: move some headers from public to internal (#6643) 5 years ago
ProtoSupport f33276f530 Update nanopb py3 0.3.9.5 -> 0.3.9.6 (#6214) 5 years ago
CHANGELOG.md b05be68db1 GDTCCTUploader: lazy initialize url session, use ephemeral session (#6870) 5 years ago
README.md 94fb0d1b11 GDT readme: log level configuration (#6513) 5 years ago
generate_project.sh e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 years ago

README.md

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 GoogleDataTransport module:

    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-generate
  • brew install protobuf nanopb-generator
  • easy_install --user protobuf

To develop

  • Run generate_project.sh after 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