@josecarlosrz/logger
Advanced tools
Comparing version 1.0.12 to 1.0.13
20
index.js
@@ -24,5 +24,5 @@ const nodeConsole = require('console'); | ||
const lastFourPath = caller.getFileName().split(pathSep).slice(-4).join(pathSep); | ||
const lastThreePath = caller.getFileName().split(pathSep).slice(-4).join(pathSep); | ||
const file = pathSep + lastFourPath.trim(pathSep); | ||
const lastThreeFile = pathSep + lastThreePath.trim(pathSep); | ||
const line = caller.getLineNumber(); | ||
@@ -35,18 +35,6 @@ const column = caller.getColumnNumber(); | ||
console.log('[File]'); | ||
console.log('[File]', '...' + lastThreeFile + ':' + line + ':' + column); | ||
console.group(); | ||
console.log('[Message]', message); | ||
console.log(file + ':' + line + ':' + column); | ||
console.groupEnd(); | ||
console.log('[Message]'); | ||
console.group(); | ||
console.log(message); | ||
console.groupEnd(); | ||
if (args.length > 0) { | ||
@@ -53,0 +41,0 @@ |
{ | ||
"name": "@josecarlosrz/logger", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Function to log each component of our application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2673
52