getTaskLogger

lsst.pipe.base.getTaskLogger(name=None, logger=None)

Get a logger compatible with LSST usage.

Parameters:
namestr, optional

Name of the logger. Root logger if None.

loggerlogging.Logger

If given the logger is converted to the relevant logger class. If name is given the logger is assumed to be a child of the supplied logger.

Returns:
loggerlsst.utils.logging.LsstLogAdapter

The relevant logger.

Deprecated since version v24: getTaskLogger has been replaced by lsst.utils.logging.getLogger. Will be removed after v24.