MVCPostall/VCart/LogConfig/LogLabelProvider.cs
2025-01-26 22:44:31 +00:00

28 lines
902 B
C#

//using Serilog.Sinks.Loki.Labels;
namespace Blinks.LogConfig
{
//public class LogLabelProvider : ILogLabelProvider
//{
// public IList<LokiLabel> GetLabels()
// {
// return new List<LokiLabel>
// {
// new LokiLabel("app", "blinks"),
// 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;
//}
}