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

How to implement functions logging (print() or whatever else) #37

Open
henry2man opened this issue May 11, 2023 · 3 comments
Open

How to implement functions logging (print() or whatever else) #37

henry2man opened this issue May 11, 2023 · 3 comments

Comments

@henry2man
Copy link

henry2man commented May 11, 2023

Plain print() calls now generate INFO messages on Supabase.

How can we implement a full logging system with different logging levels?

@noga-dev
Copy link

noga-dev commented May 19, 2023

Workaround for now:

  1. Add the dependency js_bindings.

  2. Add the import import 'package:js_bindings/js_bindings.dart' as interop;

  3. call interop.window.console.log('logging');

Edit:

Nvm apparently print does the same.
image

@henry2man
Copy link
Author

henry2man commented May 20, 2023

Thanks, I will try print() again 🤔

Nevertheless we need something that is traced in Supabase functions console.

@henry2man
Copy link
Author

Hi there.

It looks that plain print() calls are making the job now!

Captura de pantalla 2023-05-25 a las 13 28 11

Should we add some references in docs to this?

@henry2man henry2man changed the title HOW-TO: Basic debugging and/or logging How to implement functions logging (print() or whatever else) May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants