pyspark.logger.PySparkLogger.getLogger#

static PySparkLogger.getLogger(name=None)[source]#

Return a PySparkLogger with the specified name, creating it if necessary.

If no name is specified, return the logging.RootLogger.

Parameters
namestr, optional

The name of the logger.

Returns
PySparkLogger

A configured instance of PySparkLogger.