Comments (3)
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.
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.
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.
@klauscfhq I just opened a PR for the first issue. Let me know what you think!
from signale.
Related Issues (20)
- TypeScript Rewrite Fork
- Cut new release so that TypeScript types are published with the package HOT 2
- Conditional logging based on scope HOT 1
- HH:MM:SS doesn't work HOT 2
- nested objects HOT 2
- Project status? Doesn't seem maintained HOT 14
- TypeError: Cannot read property 'length' of undefined HOT 1
- Return line of log HOT 1
- Allow custom tagging or a custom context
- Snap availability HOT 2
- Indent is off in GitHub Actions logs
- WriteStream object is not accepted in stream array HOT 1
- support ES6 module HOT 3
- Doesn't loo like expected, at least inside clusters
- Doesn't look like expected, at least inside workers threads HOT 2
- Mark project as abandoned
- Recommend @klaussinani for GitHub Sponsor Matching Funds
- Ability to save as a log file HOT 4
- Reorder logging levels to reduce debug noise HOT 10
- Add the ability to enable/disable stack trace displaying HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signale.