I am unable to see the logs when I configure the google cloud dataflow eclipse plugin as documented which is setting workerLogLevelOverrides to {\"com.mycompany.testdataflow.StarterPipeline\":\"TRACE\"}
The strange bit is doing this configuration for ERROR level seems to show the logs but anything lower doesnt.
Could anyone have come across this?
Here is the code segment I am using to try and output the logs
private static final Logger LOG = LoggerFactory.getLogger(StarterPipeline.class);
public static void main(String[] args) {
Pipeline p = Pipeline.create(PipelineOptionsFactory.fromArgs(args).withValidation().create());
for (String string : args) {
// System.out.println("########## "+string);
LOG.trace("Doing the trace for pipeline ##### Parameter is #### " + string);
LOG.trace("Doing the trace for pipeline ##### Parameter is #### ");
}
LOG.trace("Doing the trace for pipeline");
p.apply(Create.of("Hello", "World")).apply(ParDo.of(new DoFn<String, String>() {
@Override
public void processElement(ProcessContext c) {
LOG.trace("Doing the trace for pipeline");
c.output(c.element().toUpperCase());
}
})).apply(ParDo.of(new DoFn<String, Void>() {
@Override
public void processElement(ProcessContext c) {
LOG.trace("Doing the trace for pipeline");
LOG.info(c.element());
}
}));
This is from the dataflow example except for the logging that I added to see if I am able to see any logs.