Skip to main content

Winston Logger

Winston​

Winston logger comes as a plugin bundled with the binary. When using deepstream as a nodejs package it must be installed from NPM npm i @deepstream/logger-winston

 name: winston
options:
transports:
# specify a list of transports (console, file, time)
-
type: console
options:
level: verbose
colorize: true
-
type: file
level: debug
options:
filename: 'logs.json'
-
type: time
level: warn
options:
filename: time-rotated-logfile
datePattern: .yyyy-MM-dd-HH-mm

See server configuration for log levels