serilog-expressions icon indicating copy to clipboard operation
serilog-expressions copied to clipboard

Enable config UDF in appsetting.json

Open ryji opened this issue 2 years ago • 1 comments

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

ryji avatar Feb 06 '23 07:02 ryji

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.

nblumhardt avatar Mar 29 '23 04:03 nblumhardt