Home / Function/ createNodeLogger() — astro Function Reference

createNodeLogger() — astro Function Reference

Architecture documentation for the createNodeLogger() function in logging.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a75f0e2b_72f8_0a38_db4e_4ea15dfb6d10["createNodeLogger()"]
  20d992e7_d43b_be09_c7c7_64132ea5a375["logging.ts"]
  a75f0e2b_72f8_0a38_db4e_4ea15dfb6d10 -->|defined in| 20d992e7_d43b_be09_c7c7_64132ea5a375
  style a75f0e2b_72f8_0a38_db4e_4ea15dfb6d10 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/config/logging.ts lines 5–12

export function createNodeLogger(inlineConfig: AstroInlineConfig): Logger {
	if (inlineConfig.logger) return inlineConfig.logger;

	return new Logger({
		dest: nodeLogDestination,
		level: inlineConfig.logLevel ?? 'info',
	});
}

Domain

Subdomains

Frequently Asked Questions

What does createNodeLogger() do?
createNodeLogger() is a function in the astro codebase, defined in packages/astro/src/core/config/logging.ts.
Where is createNodeLogger() defined?
createNodeLogger() is defined in packages/astro/src/core/config/logging.ts at line 5.

Analyze Your Own Codebase

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

Try Supermodel Free