I want to Save my logs, JSON, and Txt files generated from the Function App Python script to Azure storage. My current code looks like this
import logginglogging.basicConfig( format='%(asctime)s %(levelname)-8s %(message)s, level=logging.INFO, filename = 'Log.txt', datefmt='%Y-%m-%d %H:%M:%S')def main(mytimer: func.TimerRequest,outputblob: func.Out[bytes]) ->None:# codes with logging
function.json file :
{"scriptFile": "__init__.py","bindings": [ {"name": "mytimer","type": "timerTrigger","direction": "in","schedule": "0 0 20 * * *" }, {"name": "outputblob","type": "blob","dataType": "binary","path": "test/log.txt",#is this the path to my storage account?"connection": "MyStorageConnectionAppSetting",#is this just a naming or is it a reference to anything?"direction": "out"` } ]}
I Want to save my logs file, JSON file, and Txt file generated from the Azure function to Azure storage.