This flag causes all subsequent pings that are submitted to also be echoed to the product's log.
Once enabled, the only way to disable this feature is to restart or manually reset the application.
The Glean SDKs log warnings and errors through platform-specific logging frameworks. See the platform-specific instructions for information on how to view the logs on the platform you are on.
- The accepted values are
false. Any other value will be ignored.
Enables or disables ping logging.
This API can safely be called before
The tag will be applied upon initialization in this case.
import Glean Glean.shared.setLogPings(true)
use glean; glean.set_log_pings(true);
import Glean from "@mozilla/glean/<platform>"; Glean.setLogPings(true);
It is also possible to enable ping logging through
GLEAN_LOG_PINGS environment variable.
This variable must be set at runtime, not at compile time. It will be checked upon Glean initialization.
To set environment variables to the process running your app in an iOS device or emulator you need to edit the scheme for your app. In the Xcode IDE, use the shortcut
Cmd + < to open the scheme editor popup. The environment variables editor is under the
Arguments tab on this popup.
$ GLEAN_LOG_PINGS=true python my_application.py
$ GLEAN_LOG_PINGS=true cargo run
$ GLEAN_LOG_PINGS=true ./mach run