Giter VIP home page Giter VIP logo

Comments (2)

krajek avatar krajek commented on May 31, 2024

Hi @axbutler,

For now, there is no way to influence the name of the properties. To be precise, names are not always in pascal case notation, but rather they are spelled exactly as they are defined in the code. If you would name exception properties using lower case notation this is how they would be logged.

The only property name that you can influence is the "ExceptionDetail" itself which can be set using IDestructuringOptions.RootName. On the other hand, in Serilog architecture it seems that it is the role of the sink itself to format the output accordingly. I can imagine that you could create a sink enforcing lower case notation for your properties.

As for the merging with other properties, we had this discussion in the past and in general, found out that having separate ExceptionDetail is the only sensible way. Note, that we do not know ahead of time what kind of object we will need to destructure. It may have a property with name conflicting with standard properties. It may contain collections with cyclic references. We have chosen to be robust in all cases.

from serilog.exceptions.

axbutler avatar axbutler commented on May 31, 2024

Thanks @krajek

from serilog.exceptions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.