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

jlogger

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jlogger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

package.json
{
"name": "jlogger",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -9,3 +9,10 @@ "main": "index.js",

},
"keywords": ["jlogger", "android-logger", "logger", "android", "java", "jibinmathews7"],
"keywords": [
"jlogger",
"android-logger",
"logger",
"android",
"java",
"jibinmathews7"
],
"author": "Jibin Mathews <jibinmathews7@gmail.com>",

@@ -12,0 +19,0 @@ "license": "ISC",

@@ -1,3 +0,41 @@

# java-inspired-node-logger
# Android Log Cat Inspired Logger for NodeJS
A debugger for nodejs based on android log cat
This is still under active development.
##Usage
```
var Log = require('jlogger');
Log.addGlobalConfig("projectName", "<your project name>"); //Usage under development
Log.addGlobalConfig("projectRoot", "<your project root>"); //Usage under development
Log.addGlobalConfig("defaultTag", "defaultTag"); //Default tag for every log
var TAG = "some TAG";
Log.e(TAG, "your msg"); //This msg will be in red
Log.error(TAG, "your msg"); //This msg will be in red
Log.w(TAG, "msg"); //In yellow
Log.warn(TAG, "msg"); //In yellow
Log.i(TAG, "msg"); //In green
Log.info(TAG, "msg"); //In green
Log.d(TAG, "msg"); //This is white
Log.d("blue", TAG, "msg"); //Specify color
Log.debug(color, TAG, "msg"); //Specify color. Default is white
```
If you want a new instance of the Logger, having different properties from global config use:
```
var Log = require('jlogger');
var Log2 = new Log.Logger({"defaultTag": "another default tag"});
Log2.e(TAG, "Another instance of logger");
// or
Log.e("Msg with default TAG");
```
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