Skip to main content

Interface: TypeOrmPinoLoggerOptions

Defined in: types.ts:1

Properties

logQueries?

optional logQueries: boolean

Defined in: types.ts:5

Log all queries (default: true)


logSlowQueries?

optional logSlowQueries: boolean

Defined in: types.ts:10

Log slow queries (default: true)


slowQueryThreshold?

optional slowQueryThreshold: number

Defined in: types.ts:15

Slow query threshold in milliseconds (default: 1000)


logQueryErrors?

optional logQueryErrors: boolean

Defined in: types.ts:20

Log query errors (default: true)


logSchemaOperations?

optional logSchemaOperations: boolean

Defined in: types.ts:25

Log schema operations (default: true)


logMigrations?

optional logMigrations: boolean

Defined in: types.ts:30

Log migrations (default: true)


maxQueryLength?

optional maxQueryLength: number

Defined in: types.ts:36

Maximum length for query logging (queries longer than this will be truncated)

Default

1000

context?

optional context: Record<string, unknown>

Defined in: types.ts:41

Custom context to add to all log entries