Skip to content

Commit

Permalink
Merge pull request #271 from botpress/rk-log-card
Browse files Browse the repository at this point in the history
added log card
  • Loading branch information
ptrckbp authored Apr 9, 2024
2 parents 36d8317 + 3944bc6 commit 1c68547
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pages/cloud/toolbox/utilities.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,32 @@ The Image card allows you to add an image window to the flow. It prompts you to
## Video

The Video card allows you to add a video window to the flow. It accepts YouTube URLs and it's useful for adding relevant content that don't fit in notes or images. The video can't be changed later.

## Log

Logs a message to the Logs console and the Emulator for debugging purposes (similar to a console.log inside an execute code card), You can use it to print variables, messages or any other information you need to debug your flow.

### Log Message

The message you want to log. You can use variables and expressions.

The log message can be a simple text or a JSON object. If you use a JSON object, it will be displayed in a more readable way.

### Logging Levels

#### Debug

Use this level to log detailed information about the flow execution. It's useful to debug the flow and understand how it works.

#### Info

Use this level to log general information about the flow execution. It's useful to understand the flow behavior and the data it's processing.

#### Warning

Use this level to log warnings about the flow execution. It's useful to alert about potential issues or unexpected behavior.

#### Error

Use this level to log errors about the flow execution. It's useful to alert about critical issues that need to be fixed.

0 comments on commit 1c68547

Please sign in to comment.