I'm trying to use the standard Python logging framework in the Databricks jobs instead of print. I'm doing this by using
spark._jvm.org.apache.log4j.LogManager.getLogger(__name__)
however as I'm running this on serverless, I get the following error
[JVM_ATTRIBUTE_NOT_SUPPORTED] Directly accessing the underlying Spark driver JVM using the attribute '_jvm' is not supported on serverless compute. If you require direct access to these fields, consider using a single-user cluster. For more details on compatibility and limitations, check: https://learn.microsoft.com/azure/databricks/release-notes/serverless.html#limitations
---------------------------------------------------------------------------