21 lines
633 B
C#
Raw Normal View History

using Logging;
namespace DistTestCore.Logs
2023-04-12 13:53:55 +02:00
{
2023-09-12 11:25:04 +02:00
public class TestLog : BaseTestLog
2023-04-12 13:53:55 +02:00
{
public TestLog(ILog backingLog, string methodName, string deployId, string name = "")
: base(backingLog, deployId)
2023-04-12 13:53:55 +02:00
{
}
public static TestLog Create(FixtureLog parentLog, string name = "")
2023-04-12 13:53:55 +02:00
{
var methodName = NameUtils.GetTestMethodName(name);
var fullName = Path.Combine(parentLog.GetFullName(), methodName);
var backingLog = CreateMainLog(fullName, name);
return new TestLog(backingLog, methodName, parentLog.DeployId);
2023-04-12 13:53:55 +02:00
}
}
}