I see the folder as described <DefaultTempDirectory>\LogFiles\Application\Functions, and I am emitting simple information messages from both ILogger.LogInformation and TraceWriter.Info, but unfortunately nothing is being added to this folder. I am using v2, v1.0.12.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@Mike-EEE Thanks for the feedback! We are currently investigating and will update you shortly.
@Mike-EEE just to double check, the temp file you are looking at is the path: C:WindowsTemp?
@ggailey777 I have been trying to repro this in my local environment but having some troubles. Can you confirm the steps in the doc are correct?
Hey @MicahMcKittrick-MSFT the path I found was:
C:\Users\<user>\AppData\Local\Temp\LogFiles\Application\Functions\
The folder structure for my host/function was created there, but no files or obvious artifacts within it. I did not see anything obvious under C:\Windows\Temp.
@kashimiz can you verify @Mike-EEE's findings? It looks like you added the log file location information originally.
Thanks.
Hey, any updates on this?
Thanks.
Can you try hitting http://localhost:70701/admin/host/status in your browser then check the logs folder?
I think by default the runtime only logs to that file if you are actively hitting that endpoint. You can also set this in your host.json
"tracing": {
"fileLoggingMode": "always"
}
@ahmelsayed and @jeffhollan, do we even need to have the section Viewing log files locally? This seems to only apply to logs generated by the host at startup (I also can't get any other logs generated there). If so, this section may create more confusion than it benefits.
This info has been removed. It will be replaced when we have something that is more helpful to customers. #please-close
Most helpful comment
@kashimiz can you verify @Mike-EEE's findings? It looks like you added the log file location information originally.
Thanks.