mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
23 lines
603 B
C#
23 lines
603 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Build.Utilities;
|
|
|
|
namespace Capnpc.Csharp.MsBuild.Generation
|
|
{
|
|
public static class LogExtensions
|
|
{
|
|
public static void LogWithNameTag(
|
|
this TaskLoggingHelper loggingHelper,
|
|
Action<string, object[]> loggingMethod,
|
|
string message,
|
|
params object[] messageArgs)
|
|
{
|
|
string fullMessage = $"[SpecFlow] {message}";
|
|
loggingMethod?.Invoke(fullMessage, messageArgs);
|
|
}
|
|
}
|
|
}
|