pyspark.SparkContext.setLogLevel

SparkContext.setLogLevel(logLevel: str) → None[source]

Control our logLevel. This overrides any user-defined log settings. Valid log levels include: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN

New in version 1.4.0.

Parameters
logLevelstr

The desired log level as a string.

Examples

>>> sc.setLogLevel("WARN")  # doctest :+SKIP