inkdpixels / log-fancy Goto Github PK
View Code? Open in Web Editor NEWLogging in both Node and the browser the fancy way
License: MIT License
Logging in both Node and the browser the fancy way
License: MIT License
Branch | Build failing 🚨 |
---|---|
Dependency | semantic-release |
Current Version | 8.1.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
semantic-release is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
580ad9c
feat: Allow to recover from ENOTINHISTORY with a tag and handle detached head repo
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
A useful scenario for this would be that logs should be written to the disk instead of stdout
or to forwards messages to the some external logging service.
Branch | Build failing 🚨 |
---|---|
Dependency | eslint |
Current Version | 4.12.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 6 commits.
29c3610
4.13.0
ac331bc
Build: changelog update for 4.13.0
256481b
Update: update handling of destructuring in camelcase (fixes #8511) (#9468)
d067ae1
Docs: Don’t use undocumented array-style configuration for max-len (#9690)
1ad3091
Chore: fix test-suite to work with node master (#9688)
cdb1488
Docs: Adds an example with try/catch. (#9672)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Instead of LOG::myNamespace:
you may want to use LOG/myNamespace:
. It will be awesome when #1 is solved.
Repeating the name of the package is a bit tedious, it would be nice if no name was provided that the logger would resolve it automatically by traversing the filesystem tree up until it finds a package.json and then just uses the name
property.
Branch | Build failing 🚨 |
---|---|
Dependency | flow-typed |
Current Version | 2.2.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
flow-typed is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | supports-color |
Current Version | 4.4.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
supports-color is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | eslint |
Current Version | 4.8.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
lines-around-comment
(fixes #8564) (#8565) (Ed Lee)The new version differs by 32 commits.
235c7dd
4.9.0
b6f31a9
Build: changelog update for 4.9.0
85388fb
Fix: Correct error and test messages to fit config search path (#9428)
62a323c
Fix: Add class options for lines-around-comment
(fixes #8564) (#8565)
8eb4aae
New: multiline-comment-style rule (fixes #8320) (#9389)
db41408
Chore: avoid applying eslint-env comments twice (#9278)
febb897
Chore: avoid loose equality assertions (#9415)
2247efa
Update: Add FunctionExpression to require-jsdoc (fixes #5867) (#9395)
6791d18
Docs: Corrected noun to verb. (#9438)
b02fbb6
Update: custom messages for no-restricted-* (refs #8400)
02732bd
Docs: Reorganized to avoid misunderstandings. (#9434)
d9466b8
Docs: Correct time forecast for tests. (#9432)
f7ed84f
Docs: Add instruction re home-directory config files (refs #7729) (#9426)
30d018b
Chore: Add Aladdin-ADD & VictorHom to README (#9424)
2d8a303
Docs: fix examples for prefer-numeric-literals (#9155)
There are 32 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
There are some edge cases where you want to enforce the log output, even if not DEBUG
variable was set.
The package author could add something like process.env.DEBUG = process.env.DEBUG || '*myNamespace*';
to the entry point, but it feels a bit hackish and repetitive.
Instead I propose to add a enableEnforcedLogMode()
to the logger which will automatically append the namespace of the logger to the DEBUG env if not already existing.
It would be handy to configure logs of the project based on an .fancylogrc
file, similar to the .babelrc
or .eslintrc
.
Branch | Build failing 🚨 |
---|---|
Dependency | chalk |
Current Version | 2.1.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
chalk is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
Chalk now comes with TypeScript type definitions built-in. f653b06
The new version differs by 7 commits.
d86db88
2.2.0
f0533f6
Bump dev dependencies
f653b06
Add TypeScript definitions (#207)
5e6d5fd
Add strip-ansi-stream
to related modules
7898eda
Update chalk-pipe description
37db75e
Add related package in the readme
a9f0c77
Use a Map
and some minor regex tweaks
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
related to #11
Enforcing logging (only) through 'enforceLogging'; only the last created instance enforces logging.
const logA = require('log-fancy')('a');
logA.enforceLogging();
logA.info("a1");
const logB = require('log-fancy')('b');
logB.enforceLogging();
logB.info("b1");
logA.info("a2"); // won't show
outputs
ℹINFO::a: a1 +0ms
ℹINFO::b: b1 +0ms
while (afaik) it should be
ℹINFO::a: a1 +0ms
ℹINFO::b: b1 +0ms
ℹINFO::a: a2 +0ms
As soon as we add plugin support to propagate all logs to a service like Kibana, we need a transactionId
so we can identify logs across services / integrations more easily
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.