mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
21 lines
605 B
C#
21 lines
605 B
C#
using System;
|
|
using Serilog.Events;
|
|
|
|
namespace BililiveRecorder.Flv.Pipeline.Actions
|
|
{
|
|
public class PipelineLogMessageWithLocationAction : PipelineAction
|
|
{
|
|
public PipelineLogMessageWithLocationAction(LogEventLevel level, string message)
|
|
{
|
|
this.Level = level;
|
|
this.Message = message ?? throw new ArgumentNullException(nameof(message));
|
|
}
|
|
|
|
public LogEventLevel Level { get; }
|
|
|
|
public string Message { get; }
|
|
|
|
public override PipelineAction Clone() => new PipelineLogMessageWithLocationAction(this.Level, this.Message);
|
|
}
|
|
}
|