Home / Function/ getLogger() — astro Function Reference

getLogger() — astro Function Reference

Architecture documentation for the getLogger() function in manifest.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9efc914f_cb8f_030b_51f8_010179c37ffc["getLogger()"]
  448a9a48_23e5_03c6_511e_437b2e8b7eda["manifest.test.js"]
  9efc914f_cb8f_030b_51f8_010179c37ffc -->|defined in| 448a9a48_23e5_03c6_511e_437b2e8b7eda
  style 9efc914f_cb8f_030b_51f8_010179c37ffc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/units/routing/manifest.test.js lines 14–24

function getLogger() {
	const logs = [];

	return {
		logger: new Logger({
			dest: { write: (msg) => logs.push(msg) },
			level: 'debug',
		}),
		logs,
	};
}

Subdomains

Frequently Asked Questions

What does getLogger() do?
getLogger() is a function in the astro codebase, defined in packages/astro/test/units/routing/manifest.test.js.
Where is getLogger() defined?
getLogger() is defined in packages/astro/test/units/routing/manifest.test.js at line 14.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free