@olasearch/logger

1.4.2 • Public • Published

Ola Search Logger Middleware

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

Installation

  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])

Readme

Keywords

none

Package Sidebar

Install

npm i @olasearch/logger

Weekly Downloads

10

Version

1.4.2

License

ISC

Unpacked Size

88.5 kB

Total Files

9

Last publish

Collaborators

  • prasanna_
  • aswinsatish
  • ryac
  • shebin
  • heemesh
  • hanlynnls