2

I would like to know if it is possible to log a message from C# code in the [azure pipeline log window (below) while using a run task. I need to print some variables that I can only get if my functions are executed in Azure in order to debug.

enter image description here

  • 1
    _"typo"_ - no need to comment as you can always [edit](https://stackoverflow.com/posts/63786072/edit) your question by clicking **edit** above –  Sep 08 '20 at 02:06
  • @MickyD I have checked it out before posting my question. This is logging from the yml file. I want to do it from C# code if possible! – Mostefa Kamal Lala Sep 08 '20 at 02:27

1 Answers1

3

You can simply use System.Console.WriteLine and you will get it printed in logs.

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107