dcar-logger
v1.0.1
Published
logger
Downloads
5
Readme
dcar-logger
const Logger = require('dcar-logger');
const logger = new Logger({
logstash: { host: '127.0.0.1', port: 15044 },
category: 'normal',
application: 'api'
});
logger.info('hello world');
| Name | Default | Description |
| ------------- | ---------------------- | --------------- |
| logstash.host
| 无 | logstash地址 |
| logstash.port
| 无 | logstash端口 |
| level
| INFO
| 日志级别 |
| category
| 无 | 日志类别 |
| application
| default
| 应用程序名 |
| hostname
| localhost
| 应用程序的域名 |
| env
| development
| 运行环境 |