22 lines
713 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
{
backingLog.Log($"*** Begin: {methodName}");
2023-04-12 13:53:55 +02:00
}
2025-04-25 15:42:13 +02:00
public static TestLog Create(FixtureLog parentLog, DateTime start, string name = "")
2023-04-12 13:53:55 +02:00
{
2025-04-25 15:42:13 +02:00
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);
2023-04-12 13:53:55 +02:00
}
}
}