Logger redux middleware for google analytics and kibana


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @olasearch/logger in KB


Ola Search Logger Middleware

A redux middleware for Ola Search to log queries to logstash or google or any third party engines


  1. Install using yarn or npm
yarn add @olasearch/logger
  1. Add middleware when creating your redux store
import { createLoggerMiddleware } from '@olasearch/logger'
import { createStore } from '@olasearch/core'
import { Parser, QueryBuilder, Http } from '@olasearch/solr-adapter'
import config from './config'

/* Setup the middleware */
let loggerMiddleware = createLoggerMiddleware({ logger: config.logger })

/* Create ola store */
let store = createStore(config, { Parser, QueryBuilder, Http }, {}, [loggerMiddleware])

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.