我正在使用scala應用程序和spark依賴項。 這裏我有什麼 log4j.properties # Here we have defined root logger
log4j.rootLogger=WARN,ERROR,R
#Direct log messages to file
log4j.appender.R=org.apache.log4j.RollingFileAppender
我想在我的實現中使用日誌記錄。我設置了log4j.properties到控制檯和文件都記錄: # Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, CONSOLE, FILE
# CONSOLE is set to be a ConsoleAppender.
log4j.a