Paul Beusterien 02488e99b7 Remove GoogleUtilities from repo (#7315) 5 yıl önce
..
GDTCCTLibrary 94ab466f50 Make the URLs used by Google Data Transport available in a Public API. (#7167) 5 yıl önce
GDTCCTTestApp e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 yıl önce
GDTCCTTests 953dec1aae GDT test server: stop server on dealloc only if running (#7253) 5 yıl önce
GDTCCTWatchOSTestApp 02488e99b7 Remove GoogleUtilities from repo (#7315) 5 yıl önce
GDTCORLibrary 3642b56224 Delay GDTCORUploadCoordinator timer initial run (#7173) 5 yıl önce
GDTCORTests 94ab466f50 Make the URLs used by Google Data Transport available in a Public API. (#7167) 5 yıl önce
GDTTestApp 92db10edb4 GDT storage cleanup: optimizations for big amount of pending events (#7014) 5 yıl önce
GDTWatchOSTestApp bde8e07844 GDT: move some headers from public to internal (#6643) 5 yıl önce
ProtoSupport 4424e9a5d3 Bump nanopb to 0.3.9.7 (#7108) 5 yıl önce
CHANGELOG.md 94ab466f50 Make the URLs used by Google Data Transport available in a Public API. (#7167) 5 yıl önce
README.md 94fb0d1b11 GDT readme: log level configuration (#6513) 5 yıl önce
generate_project.sh e03a8d91a0 Consolidate GDT and GDTCCT to a single pod (#5902) 5 yıl önce

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