serilog / serilog-expressions

An embeddable mini-language for filtering, enriching, and formatting Serilog events, ideal for use with JSON or XML configuration.
Apache License 2.0
193 stars 17 forks source link

Enable config UDF in appsetting.json #90

Open ryji opened 1 year ago

ryji commented 1 year ago

Is your feature request related to a problem? Please describe. I'd like to write a list of UDFs (user-define functions) and config it in appsettings.json file, but now seems no document about this.

Describe the solution you'd like

  "formatter":{
  "type":"Serilog.Templates.ExpressionTemplate, Serilog.Expressions",
  "template":"{ {@p.. } }"
  "nameResolver": {
    "type":"Serilog.Expressions.StaticMemberNameResolver, Serilog.Expressions",
    "Args":{
      "type": "UDF-type, UDF-dllName"
    }
  }
}

Describe alternatives you've considered N.A

Additional context N.A

nblumhardt commented 1 year ago

Hi! Thanks for dropping us a line. This isn't on the cards currently, though if anyone's keen to investigate what might be required that would be welcome.