Code Monkey home page Code Monkey logo

Comments (3)

brandonweiss avatar brandonweiss commented on May 20, 2024

This is sort of a separate issue, although it’s related. Even if the scopes are the same length, the longest label is calculated per-instance, causing the last column to not align.

screen shot 2018-07-22 at 7 58 27 am

What are your thoughts? Is this something you want to see fixed/handled? Or are you not interested?

I came up with a third way of handling this that might work. It might not necessitate changing the interface at all. Because Node modules are cached, static properties are effectively shared. So I think when a new instance is created, we could append the options to some static property, then rather than looking in the current instance to determine longest line length for scope, label, etc, we'd look in the static property.

Does that make sense? Thoughts?

from signale.

klaudiosinani avatar klaudiosinani commented on May 20, 2024

In general, it is easier to visually distinguish messages originating from the same scope/logger, due to their unique alignment, when mixed with a large number of messages originating from different scopes/loggers. A nice example is the log output that semantic-release emits.

But this could definitely be useful, we could add a couple of options, to align all messages across all instances or scopes, without them, of course, having to be mutually exclusive : )

from signale.

brandonweiss avatar brandonweiss commented on May 20, 2024

@klauscfhq I just opened a PR for the first issue. Let me know what you think!

from signale.

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.