Giter Site home page Giter Site logo

Comments (5)

eli-darkly avatar eli-darkly commented on May 20, 2024 2

Ah no, I spoke too soon, it's a pretty easy fix after all.

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024 1

In the upcoming release, we're planning to standardize the format as follows:

2020/01/06 18:25:59.404164 [env: my-environment-name] DEBUG: Received all feature flags

Messages that aren't tied to a specific environment would omit the [env: xxx] field - although for simplicity in parsing I guess we could instead substitute something like [main]. (Edited to add: the latter.)

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024

Good point. This wasn't an intentional difference; shouldn't be hard to fix.

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024

Oh... I see why it's that way. Ugh. Go's built-in Logger does not have any notion of "levels", and there is no way to make it prepend a string like "DEBUG:" to every log message that you write; all you can do is prepend a string to the whole line. That's not a desirable format— it would be much better to put the timestamp first— but as long as the loggers are implemented as a log.Logger, we have no other way to make "DEBUG:", "ERROR:", etc. show up unless we hard-code them into every log string. And because Relay is usable as a library inside an application, and those logger instances are exported global variables, changing their type would be a breaking change. So... we may have to just hard-code those prefixes for now. It's clunky but I think it's worth it to make the timestamp be at the beginning of the line.

from ld-relay.

eli-darkly avatar eli-darkly commented on May 20, 2024

The 5.9.2 release includes this change.

from ld-relay.

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.