Files
RobustToolbox/Robust.UnitTesting/Packaging/PackageLoggerNUnit.cs
T
PJB3005 d1c6c11755 Add asset pass to merge text files in directories.
This massively reduces the file count of published SS14 builds by a few thousand, by combining YAML prototypes and Fluent files in the same folder into one file.
2025-07-25 15:57:18 +02:00

18 lines
415 B
C#

using System.IO;
using Robust.Packaging;
using Robust.Shared.Log;
namespace Robust.UnitTesting.Packaging;
/// <summary>
/// Package logger for writing to NUnit's test context.
/// </summary>
/// <param name="writer"></param>
public sealed class PackageLoggerNUnit(TextWriter writer) : IPackageLogger
{
public void Log(LogLevel level, string msg)
{
writer.WriteLine($"[{level}] {msg}");
}
}