New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logule

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logule - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

imgs/line.png

9

History.md

@@ -1,5 +0,10 @@

0.5.1 / 2011-11-28
0.5.2 / 2011-11-30
==================
* logule.get('line') does not chain like the other get() functions
* logger.data exposes a frozen object with the current namespaces and logule version
* logule.verify(inst) will verify that another logule instance is compatible with this (using exposed data.version on prototype)
0.5.1 / 2011-11-27
==================
* logule.get('line') does not chain, like the other get() functions
0.5.0 / 2011-11-27

@@ -6,0 +11,0 @@ ==================

require('coffee-script');
module.exports = require('./lib/logule');
module.exports = require('./lib/');

@@ -5,3 +5,3 @@ {

"description": "An advanced logger for nodejs",
"version": "0.5.1",
"version": "0.5.2",
"repository": {

@@ -20,3 +20,4 @@ "type": "git",

"coffee-script": "~1.1.3",
"colors": "~0.5.1"
"colors": "~0.5.1",
"semver": "~1.0.12"
},

@@ -23,0 +24,0 @@ "devDependencies": {

@@ -21,6 +21,6 @@ # Logule ![travis build status](https://secure.travis-ci.org/clux/logule.png)

![simple output!](https://github.com/clux/logule/raw/master/outputsimple.png)
![simple output!](https://github.com/clux/logule/raw/master/imgs/outputsimple.png)
## Namespaces
To add a namespace prefix, subclass logule and pass it in
To add a namespace prefix, subclass logule with it:

@@ -34,3 +34,3 @@ ````javascript

![one namespace output!](https://github.com/clux/logule/raw/master/output.png)
![one namespace output!](https://github.com/clux/logule/raw/master/imgs/output.png)

@@ -67,3 +67,3 @@ ### Multiple Namespaces

![line output!](https://github.com/clux/logule/raw/master/line.png)
![line output!](https://github.com/clux/logule/raw/master/imgs/line.png)

@@ -128,2 +128,20 @@ ## Passing log around

### Verifying Logule Validity
When passing logule subs around, it might be useful for separate code to test whether what is received is an appropriate Logule instance or not.
Unfortunately, instanceof testing against your installed logule will only work when your code is not separated into modules.
Therefore, to support npm module style where there are possible multiple installations of logule spread around, the module can test that the
one passed in has a version compatible with the module's own using a built in helper function.
````javascript
var logule = require('logule');
function(logInput) {
if (logule.verify(logInput)) {
// logInput is an instance of logule, and its version is ~logule.info.version
}
}
````
Note that single functions like `logule.get('info')` will of course not pass this test.
If your API expects a single logger function, then it can only type test the input as a function.
## Zalgo

@@ -130,0 +148,0 @@ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc