Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maoosi opened this issue Oct 26, 2022 · 0 comments
Open

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

maoosi opened this issue Oct 26, 2022 · 0 comments
Assignees
Labels
👋 easy contribution Good issue if wanting to contribute is: feature request New feature request package: client Client package
Milestone

Comments

@maoosi
Copy link
Owner

maoosi commented Oct 26, 2022

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,
    })
})
@maoosi maoosi added is: feature request New feature request package: client Client package labels Oct 26, 2022
@maoosi maoosi added this to the 1.0.0-rc.4 milestone Nov 23, 2022
@maoosi maoosi modified the milestones: 1.0.0-rc.4, 1.0.0-rc.5 Dec 19, 2022
@maoosi maoosi modified the milestones: 1.0.0-rc.5, 1.0.0-rc.6, 1.0.0-rc.7 Jan 6, 2023
@maoosi maoosi added the 👋 easy contribution Good issue if wanting to contribute label Apr 10, 2023
@maoosi maoosi modified the milestones: 1.0.0-rc.7, 1.0.0-rc.8 Jun 10, 2023
@maoosi maoosi modified the milestones: 1.0.0-rc.8, 1.0.0-rc.9 Aug 19, 2023
@maoosi maoosi self-assigned this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 easy contribution Good issue if wanting to contribute is: feature request New feature request package: client Client package
Projects
Status: Planned
Development

No branches or pull requests

1 participant