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.
Asked
Active
Viewed 1,133 times
2

Mostefa Kamal Lala
- 23
- 5
-
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 Answers
3
You can simply use System.Console.WriteLine
and you will get it printed in logs.

Krzysztof Madej
- 32,704
- 10
- 78
- 107
-
Works like a Charm! btw @MickyD, this is not a duplicate of what you have linked. I wanted to do this from C# code. – Mostefa Kamal Lala Sep 28 '20 at 06:46