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
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
7 Commits
5 Branches
1 Contributors
Updated on Jun 17, 2022
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%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
Found 0/7 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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