Delgan / loguru

Python logging made (stupidly) simple
MIT License
19.05k stars 681 forks source link

Creating files in Databricks #802

Open chakra1166 opened 1 year ago

chakra1166 commented 1 year ago

I am trying to create a log file in databricks (Google Cloud) using the below command which executes successfully but there is no log file created in the location

logger.add("/mnt/bd_logging/log/log_1.log")

Is there is something that needs to be done differently for databricks?

Delgan commented 1 year ago

I don't know about Databricks, if the file could not be created, an error should be raised.

Do you see file created when using open() built-in? Because Loguru is doing the same, basically.

hussamulhussain commented 2 months ago

@chakra1166 Did you find any solution?