28 lines
903 B
C#
28 lines
903 B
C#
//using Serilog.Sinks.Loki.Labels;
|
|
|
|
namespace ChatMvc.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;
|
|
//}
|
|
}
|