mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
17 lines
365 B
C#
17 lines
365 B
C#
|
|
using System.Diagnostics;
|
||
|
|
|
||
|
|
namespace CommonHelpers
|
||
|
|
{
|
||
|
|
public static class Log
|
||
|
|
{
|
||
|
|
public static void TraceLine(string format, params object?[] arg)
|
||
|
|
{
|
||
|
|
String line = string.Format(format, arg);
|
||
|
|
|
||
|
|
Trace.WriteLine(line);
|
||
|
|
if (Environment.UserInteractive)
|
||
|
|
Console.WriteLine(line);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|