KetanOriginal post
Rank 2: Process
I want to log a variable in development environment so I just imported in app/controllers/api/teams.php
PHP
use Utopia\CLI\Console;PHP
App::get('/v1/teams')....->actions(.... Console::success("testing");But this isn't logging anything whenever I go to localhost/v1/teams
I am checking the logs via docker compose logs -f
Summary
To log a variable in the development environment, the developer needs to import `Utopia\CLI\Console` and use `Console::success("testing")` to log the variable. If the log is not displaying while accessing `localhost/v1/teams`, check the logs using `docker compose logs -f`.