Skip Navigation

GDLogManager class for log uploading

You can use the
GDLogManager
class that is included with the
BlackBerry Dynamics SDK
to monitor app log file uploads that are initiated by end users. This class does not manage or display information about log uploads initiated by the
BlackBerry UEM
administrator's policies or explicit actions.
The following samples that are delivered with the SDK illustrate how to use
GDLogManager
:
  • Objective-C samples: RSSReader, BypassUnlock, GreetingsClient and GreetingsServer
  • Swift
    samples: all
GDLogManager
's displayed information and functions include the following:
  • Size of whole upload
  • Amount of data uploaded so far
  • Events that indicate the following states:
    • Upload completed
    • Upload abandoned or canceled
    • Upload suspended
    • Upload resumed after suspension
  • Actions for managing a log upload:
    • Cancel upload
    • Suspend upload
    • Resume upload
For more information, see
GDLogManager
in the BlackBerry Dynamics API reference.
When detailed logging is disabled by policy, calling any API in the
GDLogManager
class has no effect. It is a best practice to check the setting of this policy in the app configuration using the
getApplicationConfig
API. If detailed logging is enabled, present the log upload progress UI or any other related UI.