mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 21:43:08 +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);
|
|
}
|
|
}
|
|
}
|