Advanced Logs with Logtail
Plugin page: https://bubble.io/plugin/advanced-logs-with-logtail-1726928094834x757005680443129900
Description
Struggling to find what you need in your Bubble logs?
Advanced Logs with Logtail has got you covered! With just one action, you can seamlessly send your logs to BetterStack's external system. There, you can view all logs in real-time, browse insightful dashboards, and easily find all the information you need for debugging or monitoring activities within your application. Best of all, when called from the client side, this plugin doesn't consume any of your workload units!
Features
Easily Send Logs: Seamlessly send logs to BetterStack from both the client and server sides.
Organized Logging: Specify log types to keep them neatly grouped in Logtail.
Client-Side Efficiency: Logs sent from the client side do NOT consume your workload units.
Easy Access: Keep all your crucial logs at your fingertips, easily accessible whenever you need them.
Free Log Storage: BetterStack stores your logs for free for a specified number of days.
How to Use
Install the plugin: Find the plugin and add it to your application.
Add tokens: In plugins tab, find "Advanced Logs with Logtail" plugin and paste your BetterStack tokens. They can be different for production and development version of the app if you want to, or they can be the same.
Click How to get BetterStack token? to get more details
Set up logging: At the points in your workflows that you want to log, add the "Create a log" action. Please note: for client-side workflows, it's best to use "Create a log (client side)." For backend workflows, you'll need "Create a log (server side)."
Configure the action as follows:
Message: This field specifies the message that will be sent with the log. You can use dynamic values here.
Log Type: This defines the type of log. In BetterStack, logs will be grouped by type to make it easier for you to find what you need.
Json Data: Here, you can specify a JSON object with parameters relevant to the log, such as a transaction ID where an error occurred. This provides more context for debugging.
Key Value Data: You can also specify important debugging parameters in a key:value format here.
How to get BetterStack Token?
BetterStack is a comprehensive monitoring and observability platform designed to help developers and DevOps teams manage their logs and uptime more effectively.
Here's the instruction on how to start using BetterStack:
Sign up: Create an account at https://betterstack.com/users/sign-up and log in to the system.
Set up sources: On BetterStack, find "Sources" tab and click "Connect source".
Now, enter any source name (e.g. your Bubble app name), and choose "Javascript + Node.js" as a platform. Hit "Create source".
Copy the token: All done! Now you can copy your source token and paste it to the plugin.
Last updated