[![Build Status](https://travis-ci.org/vanioinformatika/node-express-logger.svg?branch=develop)](https://travis-ci.org/vanioinformatika/node-express-logger)


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
02Jun 11, 2021May 10, 2017Minified + gzip package size for @vanioinformatika/express-logger in KB


Express console and fluentd logger

Build Status

Logger is configured to log messages to the console and fluentd.

When creating new logger instance need to pass logLevel and optional fluentConfig.

Fluentd logging is enabled via config.


const createLogger = require('@vanioinformatika/express-logger').createLogger

const logLevel = 'info'
const fluentConfig = {
  enabled: true,
  tag: 'application tag',
  config: {
    host: 'localhost',
    port: 12345

const logger = createLogger(logLevel, fluentConfig)



Initialize logger only with console logger:

const logger = createLogger('info')

Initialize logger with console and fluent logger:

const logger = createLogger('info', {
  enabled: true,
  tag: 'application-name',
  config: {
    host: 'localhost',
    port: 12345

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.