https://github.com/deepstreamio/deepstream.io-logger-winston
https://github.com/deepstreamio/deepstream.io-logger-winston
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/deepstreamio/deepstream.io-logger-winston
- Owner: deepstreamIO
- License: apache-2.0
- Created: 2016-06-20T09:55:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T09:59:59.000Z (over 3 years ago)
- Last Synced: 2024-04-28T12:43:38.783Z (almost 2 years ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 2
- Watchers: 4
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Winston Logger for deepstream.io
Configuration is done in your deepstream config file.
###### Example
```yaml
logLevel: INFO
logger:
name: winston
options:
# specify a list of transports (console, file, time)
-
type: console
options:
level: verbose # logLevel (INFO) will overwrite this value
colorize: true
```
If you don't pass any options for the winston logger it defaults to the console logger with info level and colors.
###### Define multiple transports
```yaml
logger:
name: winston
options:
# 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-roated-logfile
datePattern: .yyyy-MM-dd-HH-mm
```