With the Grafbase CLI, you can effortlessly emulate a production setting right on your local machine, accelerating the development of GraphQL-driven web and mobile apps.
While Grafbase seamlessly allows data retrieval from external APIs via connectors and resolvers, there was one missing piece. Developers had no way to peek into the requests made to or from the local Grafbase Gateway.
No more! Grafbase now has local runtime logs!
Tap into a deeper insight by enabling runtime logs using one of the new flags:
Set the log level for function invocations:
npx grafbase dev --log-level-functions <LOG_LEVEL>
Possible values: none
, error
, warn
, info
, debug
Set the log level for GraphQL operations:
npx grafbase dev --log-level-graphql-operations <LOG_LEVEL>
Possible values: none
, error
, warn
, info
, debug
Set the log level for fetch requests:
npx grafbase dev --log-level-fetch-requests <LOG_LEVEL>
Possible values: none
, error
, warn
, info
, debug
Set the default log level:
npx grafbase dev --log-level <LOG_LEVEL>
Possible values: none
, error
, warn
, info
, debug
Enable detailed logging with the -v
or --verbose
flag:
npx grafbase dev -v
Get started with local runtime logs today using the @latest
version of the CLI.
We'd also love to hear any of your feedback and ideas, so join us on Discord.