psavalle commented on PR #58429: URL: https://github.com/apache/spark/pull/58429#issuecomment-5625805656
`PySparkLogger` seems a do a couple things that do not seem desirable: - [It pins all loggers at WARN](https://github.com/apache/spark/blob/master/python/pyspark/logger/logger.py#L144), which would prevent us from controlling logger levels hierarchically. Probably hard to change now without breaking backward compatibility? - [It always attaches a handler](https://github.com/apache/spark/blob/1b8ef5fa621e4959063626ecc1ad328206c0d61f/python/pyspark/logger/logger.py#L156) -- so similar issue: if we have a hierarchy of loggers, a message would get logged N times, once at each level. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
