Giter VIP home page Giter VIP logo

Comments (4)

felixbarny avatar felixbarny commented on July 26, 2024 2

Sounds good to me, too. At least it's consistent now.

Btw, the reason there's a space after log.level is to ensure the message always starts at the same location, no matter how many characters the value of log.level has:

"log.level": "INFO","message":"foo"
"log.level":"DEBUG","message":"foo"

from ecs-logging-java.

felixbarny avatar felixbarny commented on July 26, 2024

@ChristianCiach and @eyalkoren Would you expect that there's a space after every comma or never a space after a comma? Or are you indifferent as long as it's consistent?

I also noticed that some key:value pairs have a space after the colon while some don't

I'd say the most readable variants are either

No space after colon and a space after the comma

{"key1":"value1", "key2":"value2"}

or a space after colon and a space after the comma

{"key1": "value1", "key2": "value2"}

But personally, I don't have a strong opinion and don't mind the inconsistency too much.

from ecs-logging-java.

eyalkoren avatar eyalkoren commented on July 26, 2024

I printed it both as is and as pretty string and I wouldn't be able to tell the difference until pointed out for me.
Currently it's without any space in both cases. It's easier because I don't have to care about last or not.
Since its such low importance, I'd be happy to invest as little as possible in that.

from ecs-logging-java.

ChristianCiach avatar ChristianCiach commented on July 26, 2024

Personally I would've preferred to always have a space after a comma, but consistency is way more important to me than my personal preferences. Thanks for "fixing" this!

from ecs-logging-java.

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.