0

How can I write debug messages from a compileInFn in a MapGroupCompiler? With the ContextAwareLogger I get a serialization error.

(like this:

class Compiler(context: DriverContext, compilerConf: CompilerConfig)
  extends MapGroupCompiler[IntermediateData]
  with CompileOut1To1Fn[IntermediateData]
  with LayerDefinitions {

private val log = new ContextAwareLogger(this.getClass)
...
}

)

Karl Birkkar
  • 125
  • 2
  • 8

1 Answers1

0

I just had to extend with ContextLogging

class Compiler(context: DriverContext, compilerConf: CompilerConfig)
  extends MapGroupCompiler[IntermediateData]
  with ContextLogging     // <--
  with CompileOut1To1Fn[IntermediateData]
  with LayerDefinitions {

  private val log = new ContextAwareLogger(this.getClass)

  ...
Karl Birkkar
  • 125
  • 2
  • 8