


✨ For more information about developing locally, refer to local development. Once you run slack activity and select your workspace and local app environment, you'll see output similar to the following in your terminal window: ✨ yourname123 of Your DevEnv If you want to see logs for all your app's activity, you'll need to install your app and run slack activity. Running console.log emits information that you provide for your app to emit. 07:51:25 (Trace=Tr050M6Y6QF8) Execution completed for workflow 'Log a run' 07:51:25 (Trace=Tr050TQV7ERG) Function execution completed for function 'Log a run' 07:51:25 (Trace=Tr050M6Y6QF8) Execution completed for workflow step 'Send a message to channel' 07:51:24 (Trace=Tr050M6Y6QF8) Function execution completed for function 'Send a message to channel'

07:51:22 (Trace=Tr050M6Y6QF8) Function execution started for builtin function 'Send a message to channel' 07:51:22 (Trace=Tr050M6Y6QF8) Executing workflow step 3 of 3

07:51:21 (Trace=Tr050M6Y6QF8) Execution completed for workflow step 'Log a run' 07:51:20 (Trace=Tr050M6Y6QF8) Function execution completed for function 'Log a run' 07:51:19 (Trace=Tr050M6Y6QF8) Function execution started for app function 'Log a run' 07:51:19 (Trace=Tr050M6Y6QF8) Executing workflow step 2 of 3 07:51:18 (Trace=Tr050M6Y6QF8) Execution completed for workflow step 'Open a form' 07:51:17 (Trace=Tr050M6Y6QF8) Function execution completed for function 'Open a form' 07:51:07 (Trace=Tr050M6Y6QF8) Function execution started for builtin function 'Open a form' 07:51:07 (Trace=Tr050M6Y6QF8) Executing workflow step 1 of 3 07:51:07 (Trace=Tr050M6Y6QF8) Execution started for workflow 'Log a run' Now when you run your app locally, you'll see output similar to the following in your terminal window: ✨ yourname123 of Your DevEnv Within the log_run.ts file, we'll add a console.log call to the function that logs a run and stores it in the datastore as follows: // log_run.tsĮxport default SlackFunction(LogRunFunction, async ( Ĭonsole.log(putResponse) // add this line Say you'd like to print out items that are getting stored in your datastore to verify that you're getting the type of data you expect. Let's use the Virtual Running Buddies sample app as an example. Calls to console.log are processed while your local developer server is running. When developing locally, you can log information to the console of the terminal window where you are running your development server with calls to console.log. When building modular Slack apps, you can use both function-level and app-level logging to troubleshoot and debug your app.
