2023-04-13 11:30:19 +02:00
|
|
|
|
using KubernetesWorkflow;
|
|
|
|
|
using Logging;
|
|
|
|
|
|
2023-09-12 13:32:06 +02:00
|
|
|
|
namespace Core
|
2023-04-13 11:30:19 +02:00
|
|
|
|
{
|
2023-09-14 15:40:15 +02:00
|
|
|
|
internal class LogDownloadHandler : LogHandler, ILogHandler
|
2023-04-13 11:30:19 +02:00
|
|
|
|
{
|
|
|
|
|
private readonly LogFile log;
|
|
|
|
|
|
2023-09-14 15:40:15 +02:00
|
|
|
|
internal LogDownloadHandler(string description, LogFile log)
|
2023-04-13 11:30:19 +02:00
|
|
|
|
{
|
|
|
|
|
this.log = log;
|
2023-04-17 10:31:14 +02:00
|
|
|
|
|
|
|
|
|
log.Write($"{description} -->> {log.FullFilename}");
|
|
|
|
|
log.WriteRaw(description);
|
2023-04-13 11:30:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-14 15:40:15 +02:00
|
|
|
|
internal IDownloadedLog DownloadLog()
|
2023-04-13 11:30:19 +02:00
|
|
|
|
{
|
2023-09-12 13:32:06 +02:00
|
|
|
|
return new DownloadedLog(log);
|
2023-04-13 11:30:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-04-17 10:31:14 +02:00
|
|
|
|
protected override void ProcessLine(string line)
|
2023-04-13 11:30:19 +02:00
|
|
|
|
{
|
2023-04-17 10:31:14 +02:00
|
|
|
|
log.WriteRaw(line);
|
2023-04-13 11:30:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|