import { type ServerRegisterPluginObject } from '@hapi/hapi'
import hapiPino, { type Options } from 'hapi-pino'

import { loggerOptions } from './logger-options.js'

export const requestLogger = {
  plugin: hapiPino,
  options: loggerOptions
} satisfies ServerRegisterPluginObject<Options>
