Skip to content

Feature: Ability to subscribe to log events using the Client API #49

@maoosi

Description

@maoosi
prismaAppSync.on('log', (log) => {
    console.log({
        // 'INFO' | 'WARN' | 'ERROR'
        level: log.level,
        // 'UNDEFINED' | 'FORBIDDEN' | 'BAD_USER_INPUT' | 'INTERNAL_SERVER_ERROR' | 'TOO_MANY_REQUESTS'
        type: log.type,
        // 200 | 401 | 400 | 500 | 429
        code: log.code,
        // string
        message: log.message,
        // string
        trace: log.trace,
    })
})

Metadata

Metadata

Assignees

Projects

Status

Planned

Relationships

None yet

Development

No branches or pull requests

Issue actions