Setup logging for remotely running python scripts

Options
plamina
plamina Registered Posts: 1

Hey there, I am trying to setup python logging, but am not able to configure the logging file saving using the Dataiku APIs.

What would be the equivalent for remote of this setup for locally run python processes:

import logging
logging.basicConfig(level=logging.INFO)
managed_folder_path = dataiku.Folder("logs").get_path()
logging.root.addHandler(logging.FileHandler(os.path.join(managed_folder_path, "log.log")))

Thanks!

Answers

Setup Info
    Tags
      Help me…