![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Huggare is a Swedish word for woodcutter. Let's log.
var huggare = require('huggare');
var Log = require('huggare-log');
var TAG = "MyCrapModule";
Log.setLevel(huggare.Severities.VERBOSE);
/* Some time passes, nightmares are happening... */
function whatever() {
Log.v(TAG, "I am interacting in a whateverish way.");
Log.i(TAG, {
message: "This is a message",
someData: { a: "data item that might be used by another transport" }
});
try {
notAMethod();
} catch (err) {
Log.e(TAG, "There was a sickening error", err);
return;
}
}
You'll get output something like:
2015-08-02T05:14:23.924Z [V] MyCrapModule: I am interacting in a whateverish way.
2015-08-02T05:14:24.001Z [I] MyCrapModule: This is a message.
2015-08-02T05:14:24:025Z [E] MyCrapModule: There was a sickening error
ReferenceError: notAMethod is not defined
at repl:1:1
at REPLServer.defaultEval (repl.js:164:27)
at bound (domain.js:250:14)
at REPLServer.runBound [as eval] (domain.js:263:12)
at REPLServer.<anonymous> (repl.js:392:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:546:8)
at REPLServer.Interface._ttyWrite (readline.js:823:14)
Just look at the code for now.
huggare-log
for old Log#defaults
feature.Log#defaults
as provided in example for old behaviourISC - see LICENSE file.
FAQs
Android-style logging for an ECMAScript world.
We found that huggare demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.