#Way to use Astro's internal logger?
3 messages · Page 1 of 1 (latest)
Hi @tender turtle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hmm, I don't know enough to give you a confident answer yet. The extracts provided do not contain information about using Astro's logger for consistent output in the terminal. However, they do mention the use of console.log() for debugging your Astro code. Where you write your console.log statement will determine where your debugging output is printed. For instance, a console.log() statement in Astro frontmatter will always output to the terminal running the Astro CLI, while code that is written or imported inside of an Astro <script> tag is run in the browser, and any console.log() statements or other debug output will be printed to the console in your browser source (https://docs.astro.build/en/guides/troubleshooting).