Hello @Stanley Yau
Here are a few suggestions that might help:
- Set a higher log level: The execution logs you want to get rid of are generated by the function runtime. You can set a higher log level to filter information and keep your self-defined info. For example, in your
host.json
, you can set the log level forFunction
andFunction.MyFunctionName.User
toError
- Use Azure portal to override: After deploying in Azure, if you want to override logging, you can add the
AzureFunctionsJobHost__path__to__setting
setting in Application Settings in the function Configuration. - Disable specific function logging: In
host.json
, while logging your function telemetry information, you can use the log levelNone
to disable the specified category log - Disable built-in logging: If you want to disable built-in logging, you can delete the
AzureWebJobsDashboard
app setting
Please note that these changes might affect your custom information logs.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.