Writing Logs
- The WebJobs Dashboard shows logs in two places: the page for the WebJob, and the page for a particular WebJob invocation.
Output from Console methods that you call in a function or in the Main() method appears in the Dashboard page for the WebJob, not in the page for a particular method invocation. Output from the TextWriter object that you get from a parameter in your method signature appears in the Dashboard page for a method invocation.
- To write application tracing logs, use Console.Out (creates logs marked as INFO) and Console.Error (creates logs marked as ERROR).
- Which will result in these messages in the Dashboard for the WebJob:
- And this message in the Dashboard page for the method: