Log statements don't appear from within plugins

console.log statements in plugins don’t appear in the app log.

My plugin has the following:

```
console.log("Acquired token.");
await ctx.toast.show({ message: "Acquired token", 'success', icon: "check_circle" });
```

I see the toast but don’t see the log statement.

Temporary workarounds for anyone else having this issue:
1. Greg said the console statements should work if you’re running a dev build.
2. Use ctx.toast.show (as above) to show short debug messages or ctx.prompt.text (setting your debug string in the textbox’s default value) for longer ones or to copy/paste.

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

11 months ago

Author

Linda Naughton

Subscribe to post

Get notified by email when there are changes.