Class TelemetryEvent.LogBuilder
- java.lang.Object
-
- net.snowflake.client.jdbc.telemetryOOB.TelemetryEvent.LogBuilder
-
- Enclosing class:
- TelemetryEvent
public static class TelemetryEvent.LogBuilder extends Object
Build log json object
-
-
Constructor Summary
Constructors Constructor Description LogBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TelemetryEventbuild()TelemetryEvent.LogBuilderwithException(Exception ex)build a log event for an exception including the full stack traceTelemetryEvent.LogBuilderwithException(SFException ex)TelemetryEvent.LogBuilderwithValue(String value)TelemetryEvent.LogBuilderwithValue(net.minidev.json.JSONArray value)TelemetryEvent.LogBuilderwithValue(net.minidev.json.JSONObject value)
-
-
-
Method Detail
-
withException
public TelemetryEvent.LogBuilder withException(Exception ex)
build a log event for an exception including the full stack trace- Parameters:
ex- The exception to build a log event- Returns:
- The log event builder
-
withException
public TelemetryEvent.LogBuilder withException(SFException ex)
-
withValue
public TelemetryEvent.LogBuilder withValue(String value)
-
withValue
public TelemetryEvent.LogBuilder withValue(net.minidev.json.JSONObject value)
-
withValue
public TelemetryEvent.LogBuilder withValue(net.minidev.json.JSONArray value)
-
build
public TelemetryEvent build()
-
-