Reputation: 209
What is the difference between Slf4j and Log4j logging in Spark? How can Log4j be used for logging in Spark cluster mode?
Upvotes: 2
Views: 2653
Reputation: 16076
Spark uses Log4j for logging, so you also can use it.
Note that Slf4j is only facade and you can use Slf4j with log4j, i.e. to have possibility to use slf4j's syntax in messages, like log.info("Message: {}", message);
Here you've got tutorial about logging in Spark
Upvotes: 3