Jeremy Jiang 781c8b842e Expose upload URLs so that perf can stop instrumenting these URLs. (#7064) 5 år sedan
..
GDTCCTLibrary 781c8b842e Expose upload URLs so that perf can stop instrumenting these URLs. (#7064) 5 år sedan
GDTCCTTestApp e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 år sedan
GDTCCTTests 781c8b842e Expose upload URLs so that perf can stop instrumenting these URLs. (#7064) 5 år sedan
GDTCCTWatchOSTestApp 4507ad146b Fix CI/regression - update for change FCM API (#6699) 5 år sedan
GDTCORLibrary 92db10edb4 GDT storage cleanup: optimizations for big amount of pending events (#7014) 5 år sedan
GDTCORTests bde8e07844 GDT: move some headers from public to internal (#6643) 5 år sedan
GDTTestApp 92db10edb4 GDT storage cleanup: optimizations for big amount of pending events (#7014) 5 år sedan
GDTWatchOSTestApp bde8e07844 GDT: move some headers from public to internal (#6643) 5 år sedan
ProtoSupport f33276f530 Update nanopb py3 0.3.9.5 -> 0.3.9.6 (#6214) 5 år sedan
CHANGELOG.md 781c8b842e Expose upload URLs so that perf can stop instrumenting these URLs. (#7064) 5 år sedan
README.md 94fb0d1b11 GDT readme: log level configuration (#6513) 5 år sedan
generate_project.sh e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 år sedan

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