Log level with log4j and Spark

Posted niaomingjian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Log level with log4j and Spark相关的知识,希望对你有一定的参考价值。

Log Level Usages
OFF This is the most specific, which allows no logging at all
FATAL This is the most specific one that shows fatal errors with little data
ERROR This shows only the general errors
WARN This shows warnings that are recommended to be fixed but not mandatory
INFO This shows information required for your Spark job
DEBUG While debugging, those logs will be printed
TRACE This provides the least specific error trace with a lot of data
ALL Least specific message with all data

以上是关于Log level with log4j and Spark的主要内容,如果未能解决你的问题,请参考以下文章

log4j配置文件详解

log4j.properties详解

log4j配置简要说明

java 中用程序修改log4j的输出等级

log4j配置记录

log4j.properties配置详解