mirror of
https://github.com/KeygraphHQ/juice-shop.git
synced 2026-11-07 11:06:06 -10:00
14 lines
351 B
TypeScript
14 lines
351 B
TypeScript
/*
|
|
* Copyright (c) 2014-2025 Bjoern Kimminich & the OWASP Juice Shop contributors.
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
import * as winston from 'winston'
|
|
|
|
export default winston.createLogger({
|
|
transports: [
|
|
new winston.transports.Console({ level: process.env.NODE_ENV === 'test' ? 'error' : 'info' })
|
|
],
|
|
format: winston.format.simple()
|
|
})
|