public interface DataflowWorkerLoggingOptions extends PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
DataflowWorkerLoggingOptions.Level
The set of log levels that can be used on the Dataflow worker.
|
static class |
DataflowWorkerLoggingOptions.WorkerLogLevelOverrides
Defines a log level override for a specific class, package, or name.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory
Modifier and Type | Method and Description |
---|---|
DataflowWorkerLoggingOptions.Level |
getDefaultWorkerLogLevel()
This option controls the default log level of all loggers without a log level override.
|
DataflowWorkerLoggingOptions.WorkerLogLevelOverrides |
getWorkerLogLevelOverrides()
This option controls the log levels for specifically named loggers.
|
DataflowWorkerLoggingOptions.Level |
getWorkerSystemErrMessageLevel()
Controls the log level given to messages printed to
System.err . |
DataflowWorkerLoggingOptions.Level |
getWorkerSystemOutMessageLevel()
Controls the log level given to messages printed to
System.out . |
void |
setDefaultWorkerLogLevel(DataflowWorkerLoggingOptions.Level level) |
void |
setWorkerLogLevelOverrides(DataflowWorkerLoggingOptions.WorkerLogLevelOverrides value) |
void |
setWorkerSystemErrMessageLevel(DataflowWorkerLoggingOptions.Level level) |
void |
setWorkerSystemOutMessageLevel(DataflowWorkerLoggingOptions.Level level) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation
populateDisplayData
@Default.Enum(value="INFO") DataflowWorkerLoggingOptions.Level getDefaultWorkerLogLevel()
void setDefaultWorkerLogLevel(DataflowWorkerLoggingOptions.Level level)
@Default.Enum(value="INFO") DataflowWorkerLoggingOptions.Level getWorkerSystemOutMessageLevel()
System.out
.
Note that the message may be filtered depending on the
defaultWorkerLogLevel
or if a System.out
override is
specified via workerLogLevelOverrides
.
void setWorkerSystemOutMessageLevel(DataflowWorkerLoggingOptions.Level level)
@Default.Enum(value="ERROR") DataflowWorkerLoggingOptions.Level getWorkerSystemErrMessageLevel()
System.err
.
Note that the message may be filtered depending on the
defaultWorkerLogLevel
or if a System.err
override is
specified via workerLogLevelOverrides
.
void setWorkerSystemErrMessageLevel(DataflowWorkerLoggingOptions.Level level)
DataflowWorkerLoggingOptions.WorkerLogLevelOverrides getWorkerLogLevelOverrides()
Later options with equivalent names override earlier options.
See DataflowWorkerLoggingOptions.WorkerLogLevelOverrides
for more information on how to configure logging
on a per Class
, Package
, or name basis. If used from the command line,
the expected format is {"Name":"Level",...}, further details on
DataflowWorkerLoggingOptions.WorkerLogLevelOverrides.from(java.util.Map<java.lang.String, java.lang.String>)
.
void setWorkerLogLevelOverrides(DataflowWorkerLoggingOptions.WorkerLogLevelOverrides value)