-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlog4j.properties
28 lines (24 loc) · 1.26 KB
/
log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# make a file appender and a console appender
# Print the date in ISO 8601 format
log4j.appender.myConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.myConsoleAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.myConsoleAppender.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.myFileAppender=org.apache.log4j.RollingFileAppender
log4j.appender.myFileAppender.File=spark.log
log4j.appender.myFileAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.myFileAppender.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
# By default, everything goes to console and file
log4j.rootLogger=OFF, myConsoleAppender, myFileAppender
# The noisier spark logs go to file only
log4j.logger.spark.storage=OFF, myFileAppender
log4j.additivity.spark.storage=false
log4j.logger.spark.scheduler=OFF, myFileAppender
log4j.additivity.spark.scheduler=false
log4j.logger.spark.CacheTracker=OFF, myFileAppender
log4j.additivity.spark.CacheTracker=false
log4j.logger.spark.CacheTrackerActor=OFF, myFileAppender
log4j.additivity.spark.CacheTrackerActor=false
log4j.logger.spark.MapOutputTrackerActor=OFF, myFileAppender
log4j.additivity.spark.MapOutputTrackerActor=false
log4j.logger.spark.MapOutputTracker=OFF, myFileAppender
log4j.additivty.spark.MapOutputTracker=false