cs-codex-dist-tests/DistTestCore/Logs/LogDownloadHandler.cs

29 lines
632 B
C#

using KubernetesWorkflow;
using Logging;
namespace DistTestCore.Logs
{
public class LogDownloadHandler : LogHandler, ILogHandler
{
private readonly LogFile log;
public LogDownloadHandler(string description, LogFile log)
{
this.log = log;
log.Write($"{description} -->> {log.FullFilename}");
log.WriteRaw(description);
}
public CodexNodeLog CreateCodexNodeLog()
{
return new CodexNodeLog(log);
}
protected override void ProcessLine(string line)
{
log.WriteRaw(line);
}
}
}