mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-10 19:16:46 +00:00
29 lines
621 B
C#
29 lines
621 B
C#
using KubernetesWorkflow;
|
|
using Logging;
|
|
|
|
namespace Core
|
|
{
|
|
internal class LogDownloadHandler : LogHandler, ILogHandler
|
|
{
|
|
private readonly LogFile log;
|
|
|
|
internal LogDownloadHandler(string description, LogFile log)
|
|
{
|
|
this.log = log;
|
|
|
|
log.Write($"{description} -->> {log.FullFilename}");
|
|
log.WriteRaw(description);
|
|
}
|
|
|
|
internal IDownloadedLog DownloadLog()
|
|
{
|
|
return new DownloadedLog(log);
|
|
}
|
|
|
|
protected override void ProcessLine(string line)
|
|
{
|
|
log.WriteRaw(line);
|
|
}
|
|
}
|
|
}
|