Class DataflowWorkerLoggingOptions.WorkerLogLevelOverrides

java.lang.Object
java.util.AbstractMap<String,DataflowWorkerLoggingOptions.Level>
java.util.HashMap<String,DataflowWorkerLoggingOptions.Level>
org.apache.beam.runners.dataflow.options.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.

The Dataflow worker harness 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.

System.out and System.err messages are configured via loggers of the corresponding name. Note that by specifying multiple overrides, the exact name followed by the closest parent takes precedence.

See Also: