0.1.0 • Published 4 years ago
@phoenix-labs/log-service v0.1.0
log-service
Common log service
Environment variables required
- LOG_LEVEL - specify the default winston log level
- NODE_ENV - to change the winston log transport based on production and non-production environment
LOGSTASH_CONFIG - configuration for logstash host
{ port: your logstash port, host: "your-logstash-host", ssl_enable: true, max_connect_retries: -1, }
Config
Ex.
{
serviceName: "service name not specified",
level: "info",
fmt: winston.format.combine(...)
}
- serviceName: the name of the service currently using this logger
- level? : level of logging
- fmt? : winston fmt object override
0.1.0
4 years ago