mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
25 lines
683 B
C#
25 lines
683 B
C#
using Logging;
|
|
|
|
namespace DistTestCore.Logs
|
|
{
|
|
public class FixtureLog : BaseTestLog
|
|
{
|
|
public FixtureLog(ILog backingLog, string deployId)
|
|
: base(backingLog, deployId)
|
|
{
|
|
}
|
|
|
|
public TestLog CreateTestLog(DateTime start, string name = "")
|
|
{
|
|
return TestLog.Create(this, start, name);
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|