30 lines
825 B
C#
Raw Normal View History

2023-09-20 10:51:47 +02:00
using Logging;
namespace DistTestCore.Logs
2023-04-14 14:53:39 +02:00
{
2023-09-12 11:25:04 +02:00
public class FixtureLog : BaseTestLog
2023-04-14 14:53:39 +02:00
{
private readonly ILog backingLog;
private readonly string deployId;
public FixtureLog(ILog backingLog, string deployId)
: base(backingLog, deployId)
2023-04-14 14:53:39 +02:00
{
this.backingLog = backingLog;
this.deployId = deployId;
2023-04-14 14:53:39 +02:00
}
public TestLog CreateTestLog(string name = "")
2023-04-14 14:53:39 +02:00
{
return TestLog.Create(this, name);
2023-04-14 14:53:39 +02:00
}
public static FixtureLog Create(LogConfig config, DateTime start, string deployId, string name = "")
{
var fullName = NameUtils.GetFixtureFullName(config, start, name);
var log = CreateMainLog(fullName, name);
return new FixtureLog(log, deployId);
2023-04-14 14:53:39 +02:00
}
}
}