DataflowWorkerLoggingOptions.WorkerLogLevelOverrides (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.options

Class DataflowWorkerLoggingOptions.WorkerLogLevelOverrides

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<String,DataflowWorkerLoggingOptions.Level>
    Enclosing interface:
    DataflowWorkerLoggingOptions


    public static class DataflowWorkerLoggingOptions.WorkerLogLevelOverrides
    extends HashMap<String,DataflowWorkerLoggingOptions.Level>
    Defines a log level override for a specific class, package, or name.

    java.util.logging is used on the Dataflow worker harness and supports a logging hierarchy based off of names that are "." separated. It is a common pattern to have the logger for a given class share the same name as the class itself. Given the classes a.b.c.Foo, a.b.c.Xyz, and a.b.Bar, with loggers named "a.b.c.Foo", "a.b.c.Xyz", and "a.b.Bar" respectively, we can override the log levels:

    • for Foo by specifying the name "a.b.c.Foo" or the Class representing a.b.c.Foo.
    • for Foo, Xyz, and Bar by specifying the name "a.b" or the Package representing a.b.
    • for Foo and Bar by specifying both of their names or classes.
    Note that by specifying multiple overrides, the exact name followed by the closest parent takes precedence.
    See Also:
    Serialized Form


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Dataflow
Need help? Visit our support page.