0

Have a common spark cluster with log level set to error, Unable to override the log level at an App level..

Using

"com.typesafe.scala-logging" %%  "scala-logging" % Versions.typesafeScalaLoggingVersion,
"ch.qos.logback" % "logback-classic" % Versions.chQosLogbackClassicVersion

In the App,

object BillingdataApp extends LazyLogging {
logger.info(s"Does not log")
logger.error(s"This logs")}
Tom
  • 445
  • 1
  • 4
  • 10
Hemanth Gowda
  • 604
  • 4
  • 16

1 Answers1

0

This works..

import org.apache.log4j.Logger
Logger.getLogger("com").setLevel(Level.INFO)
Hemanth Gowda
  • 604
  • 4
  • 16