mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-08 00:13:08 +00:00
21 lines
633 B
C#
21 lines
633 B
C#
using Logging;
|
|
|
|
namespace DistTestCore.Logs
|
|
{
|
|
public class TestLog : BaseTestLog
|
|
{
|
|
public TestLog(ILog backingLog, string methodName, string deployId, string name = "")
|
|
: base(backingLog, deployId)
|
|
{
|
|
}
|
|
|
|
public static TestLog Create(FixtureLog parentLog, string name = "")
|
|
{
|
|
var methodName = NameUtils.GetTestMethodName(name);
|
|
var fullName = Path.Combine(parentLog.GetFullName(), methodName);
|
|
var backingLog = CreateMainLog(fullName, name);
|
|
return new TestLog(backingLog, methodName, parentLog.DeployId);
|
|
}
|
|
}
|
|
}
|