Runtime Logger
Astro provides a logger (typed AstroIntegrationLogger
) configured for each integration on all the official integration hooks. But this logger is only accessible on the code configuring the integration, not for any runtime modules defined by it.
This integration allows you to access the logger from the runtime of your integration.
Installing the integration
Using the integration
To enable this, you need to register your integration to have a runtime logger under some name:
With that in place, your runtime code can now access the logger by importing the generated module @it-astro:logger:<name>
:
License
Astro Runtime Logger is available under the MIT license.