Skip to main content
Version: 2x

Interface: DevServerLoggerOptions

Development server logging configuration. Apart from 'stream' all other fields come from Fastify types.

Hierarchy

  • FastifyLoggerOptions

    DevServerLoggerOptions

Table of contents

Properties

Methods

Properties

level

Optional level: string

Inherited from

FastifyLoggerOptions.level

Defined in

node_modules/fastify/types/logger.d.ts:143


prettyPrint

Optional prettyPrint: boolean | PrettyOptions

Inherited from

FastifyLoggerOptions.prettyPrint

Defined in

node_modules/fastify/types/logger.d.ts:145


serializers

Optional serializers: Object

Type declaration

NameType
err?(err: FastifyError) => { [key: string]: unknown; message: string ; stack: string ; type: string }
req?(req: RawRequest) => { [key: string]: unknown; hostname?: string ; method?: string ; remoteAddress?: string ; remotePort?: number ; url?: string ; version?: string }
res?(res: RawReply) => { [key: string]: unknown; statusCode: string | number }

Inherited from

FastifyLoggerOptions.serializers

Defined in

node_modules/fastify/types/logger.d.ts:122


stream

Optional stream: Writable

Stream to write logs to.

Defined in

packages/repack/src/server/types.ts:50

Methods

genReqId

Optional genReqId(req): string

Parameters

NameType
reqRawRequest

Returns

string

Inherited from

FastifyLoggerOptions.genReqId

Defined in

node_modules/fastify/types/logger.d.ts:144