C
C#2y ago
Welles

azure functions isolated process

Hi all, This is a niche question, but hoping somebody could enlighten me. So I’m creating an azure function in visual studio (isolated process) and had some questions on the workings of the hostbuilder in this particular case. I noticed that all Functions you create using the [Function …] tag are injected as transient, is there a way to change this or is it just how the azure functions sdk works? Secondly I’m trying to get serilog working for my local development, the issue I’m having is that when running the code from vsstudio, the actual cmd window which shows does not actually listen to stdout and thus my serilog config using sink console shows nothing. When I remove serilog config in configurelogging, the logs show up but are not formatted the way I want and I can’t seem to change that. Best regards!
1 Reply
Welles
Welles2y ago
My serilog config is in local.settings.json, not sure if this is ok