Package io.deephaven.util
Class GrpcLogging
java.lang.Object
io.deephaven.util.GrpcLogging
public final class GrpcLogging extends Object
-
Field Summary
Fields Modifier and Type Field Description static Level
DEFAULT_NON_ALL_LEVEL
static Level
NON_ALL_LEVEL
static String
NON_ALL_LEVEL_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description GrpcLogging()
-
Method Summary
Modifier and Type Method Description static void
setupFromBooleanProperty(String property, boolean defaultValue, String shadowPath)
Setup gRPC log bridging to the iris logging system, according to the value for the provided property name, with the given default.
-
Field Details
-
Constructor Details
-
GrpcLogging
public GrpcLogging()
-
-
Method Details
-
setupFromBooleanProperty
public static void setupFromBooleanProperty(String property, boolean defaultValue, String shadowPath)Setup gRPC log bridging to the iris logging system, according to the value for the provided property name, with the given default. As we shadow gRPC dependencies, and we have more than one shadow, the caller needs to specify the shadowed path.- Parameters:
property
- A property name whose value as a boolean will define how bridging is done. true means use "all", false means useDEFAULT_NON_ALL_LEVEL
.defaultValue
- Default boolean value in case the property is not set.shadowPath
- The shadow path prefix, up to and excluding any trailing io.grpc.X components. Eg, if the full path to shadowed class X is "A.B.C.io.grpc.X",shadowPath
should be "A.B.C".
-