Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@etherdata-blockchain/logger

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etherdata-blockchain/logger - npm Package Compare versions

Comparing version 1.4.15 to 1.5.0

src/tests/logger.test.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# 1.5.0 (2022-01-16)
### Features
* **tests:** add more tests in logger package and fix service bugs ([#4](https://github.com/etherdata-blockchain/packages/issues/4)) ([c179fdc](https://github.com/etherdata-blockchain/packages/commit/c179fdc055d21edcdb83518ed1b2537c4670468d))
## 1.4.15 (2022-01-16)

@@ -8,0 +19,0 @@

6

package.json
{
"name": "@etherdata-blockchain/logger",
"version": "1.4.15",
"main": "src/index.js",
"version": "1.5.0",
"main": "src/index.ts",
"license": "MIT",

@@ -22,3 +22,3 @@ "dependencies": {

},
"gitHead": "2c95518ee3d7d3e34a3c88aafdd2c9fa08f5dbc8"
"gitHead": "08d692b32731b4409e500be4589a89082cfbbe06"
}
import moment from "moment";
import chalk from "chalk";
export class Logger {
static info(message: any) {
console.log(
`[${chalk.blue("INFO")}] ${chalk.gray(
moment().format("hh:mm:ss")
)} ${message}`
);
console.log(`[INFO] ${moment().format("hh:mm:ss")} ${message}`);
}
static warning(message: any) {
console.log(
`[${chalk.yellow("WARNING")}] ${chalk.gray(
moment().format("hh:mm:ss")
)} ${message}`
);
console.log(`[WARNING] ${moment().format("hh:mm:ss")} ${message}`);
}
static error(message: any) {
console.log(
`[${chalk.red("Error")}] ${chalk.gray(
moment().format("hh:mm:ss")
)} ${message}`
);
console.log(`[Error] ${moment().format("hh:mm:ss")} ${message}`);
}
}
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