sumatube/SumaTube/LogConfig/LogLabelProvider.cs
2025-04-20 23:33:46 -03:00

28 lines
906 B
C#

//using Serilog.Sinks.Loki.Labels;
namespace SumaTube.LogConfig
{
//public class LogLabelProvider : ILogLabelProvider
//{
// public IList<LokiLabel> GetLabels()
// {
// return new List<LokiLabel>
// {
// new LokiLabel("app", "SumaTube"),
// new LokiLabel("namespace", "test")
// };
// }
// public IList<string> PropertiesAsLabels { get; set; } = new List<string>
// {
// "level", // Since 3.0.0, you need to explicitly add level if you want it!
// "MyLabelPropertyName"
// };
// public IList<string> PropertiesToAppend { get; set; } = new List<string>
// {
// "MyAppendPropertyName"
// };
// //public LokiFormatterStrategy FormatterStrategy { get; set; } = LokiFormatterStrategy.SpecificPropertiesAsLabelsOrAppended;
//}
}