Gathering detailed insights and metrics for winston-like-debug
Gathering detailed insights and metrics for winston-like-debug
Gathering detailed insights and metrics for winston-like-debug
Gathering detailed insights and metrics for winston-like-debug
npm install winston-like-debug
Typescript
Module System
Node Version
NPM Version
68.2
Supply Chain
98.3
Quality
73.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
77,326
Last Day
201
Last Week
201
Last Month
3,666
Last Year
55,353
1 Stars
7 Commits
1 Watching
5 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.3.1
Package Id
winston-like-debug@1.3.1
Unpacked Size
7.11 kB
Size
2.73 kB
File Count
5
NPM Version
8.12.1
Node Version
16.15.0
Cumulative downloads
Total Downloads
Last day
0%
201
Compared to previous day
Last week
-76.8%
201
Compared to previous week
Last month
-7%
3,666
Compared to previous month
Last year
673.1%
55,353
Compared to previous year
Format logs with Winston like you do with Debug
1const log = require('./logger')('my.controller') 2 3log.info('hi', { from: 'foo' }) 4log.verbose({ some: 'test' }) 5log.warn('Invalid userid') 6log.silly('Hi %s', 'Bob', { greetings: true }, { when: Date.now() }) 7log.error('Error reading file') 8log.debug('config', { my: 'var' })
yarn add winston-like-debug
npm install winston-like-debug
1const winston = require('winston')
2const { likeDebug, withNamespace } = require('winston-like-debug')
3
4const logger = winston.createLogger({
5 // This is required to be at top level format
6 // See https://github.com/winstonjs/winston/issues/1430
7 format: winston.format.splat(),
8})
9
10logger.add(
11 new winston.transports.Console({
12 level: 'silly',
13 format: likeDebug(),
14 })
15)
16
17logger.add(
18 new winston.transports.File({
19 level: 'debug',
20 filename: __dirname + '/output.log',
21 format: likeDebug({ colors: false }),
22 })
23)
24
25module.exports = withNamespace(logger)
1const log = require('./logger')('root') 2 3log.verbose('listening', { host: 'localhost' }, { port: 3000 })
2010-01-30T10:04:43.824Z VERBOSE root listening {"host":"localhost","port":3000}
1const log = require('./logger')(module) 2 3log.warn('login', { userId: 98356190 })
2010-01-30T10:08:03.386Z WARN auth.controller login {"userId":98356190}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More