@olasearch/logger
v1.4.2
Published
Logger redux middleware for google analytics and kibana
Downloads
8
Keywords
Readme
Ola Search Logger Middleware
A redux middleware for Ola Search to log queries to logstash or google or any third party engines
Installation
- Install using yarn or npm
yarn add @olasearch/logger
- 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])