Maksym Malyhin 6e5f02d846 GDT: test app fixes (#6897) 5 年 前
..
GDTCCTLibrary b05be68db1 GDTCCTUploader: lazy initialize url session, use ephemeral session (#6870) 5 年 前
GDTCCTTestApp e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 年 前
GDTCCTTests bde8e07844 GDT: move some headers from public to internal (#6643) 5 年 前
GDTCCTWatchOSTestApp 4507ad146b Fix CI/regression - update for change FCM API (#6699) 5 年 前
GDTCORLibrary 57123ae0d5 Update clang-format to 11 (#6905) 5 年 前
GDTCORTests bde8e07844 GDT: move some headers from public to internal (#6643) 5 年 前
GDTTestApp 6e5f02d846 GDT: test app fixes (#6897) 5 年 前
GDTWatchOSTestApp bde8e07844 GDT: move some headers from public to internal (#6643) 5 年 前
ProtoSupport f33276f530 Update nanopb py3 0.3.9.5 -> 0.3.9.6 (#6214) 5 年 前
CHANGELOG.md 493eb7cc75 Update Changelogs for 7.1.0 (#6913) 5 年 前
README.md 94fb0d1b11 GDT readme: log level configuration (#6513) 5 年 前
generate_project.sh e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 年 前

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