2025-04-25 15:42:13 +02:00

22 lines
713 B
C#

using Logging;
namespace DistTestCore.Logs
{
public class TestLog : BaseTestLog
{
public TestLog(ILog backingLog, string methodName, string deployId, string name = "")
: base(backingLog, deployId)
{
backingLog.Log($"*** Begin: {methodName}");
}
public static TestLog Create(FixtureLog parentLog, DateTime start, string name = "")
{
var methodName = NameUtils.GetTestLogFileName(start, name);
var fullName = Path.Combine(parentLog.GetFullName(), methodName);
var backingLog = CreateMainLog(fullName, name);
return new TestLog(backingLog, methodName, parentLog.DeployId);
}
}
}