-
public class ZgLogConsole gate for every log line the SDK writes.
Silent by default. A host app embeds this SDK inside its product; the SDK's internal chatter is not the host's to explain to their users, and an integrator who never asked for logs must not get any. Set enabled via the
enableLogsconstructor parameter on ZeroGpuSdk to turn it back on while debugging.Nothing is lost when this is off: every failure the SDK cares about is already reported as a device lifecycle event (
sdk.init_failed,model.load_failed,model.sample_failed,sdk.crash_detected, …) through the telemetry pipeline and is queryable server-side. That event stream, not logcat, is where these are diagnosed from.Crashes are unaffected — uncaught exceptions still reach logcat and whatever crash reporter the host installs.
-
-
Method Summary
Modifier and Type Method Description final static Unitd(String tag, String msg)final static Uniti(String tag, String msg)final static Unitw(String tag, String msg)final static Unitw(String tag, String msg, Throwable tr)final static Unite(String tag, String msg)final static Unite(String tag, String msg, Throwable tr)final static BooleangetEnabled()Process-wide because the log sites live in classes that never see the SDK instance. final static UnitsetEnabled(Boolean enabled)Process-wide because the log sites live in classes that never see the SDK instance. -
-
Method Detail
-
getEnabled
final static Boolean getEnabled()
Process-wide because the log sites live in classes that never see the SDK instance.
-
setEnabled
final static Unit setEnabled(Boolean enabled)
Process-wide because the log sites live in classes that never see the SDK instance.
-
-
-
-