logging.ts — astro Source File
Architecture documentation for logging.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 20d992e7_d43b_be09_c7c7_64132ea5a375["logging.ts"] c32d12e2_d85e_28c0_eea7_9b29629857e0["../types/public/config.js"] 20d992e7_d43b_be09_c7c7_64132ea5a375 --> c32d12e2_d85e_28c0_eea7_9b29629857e0 d3861967_b647_84d2_ff48_15013353bd56["../core/logger/core.js"] 20d992e7_d43b_be09_c7c7_64132ea5a375 --> d3861967_b647_84d2_ff48_15013353bd56 23f7d7cd_59bf_0643_9f11_6d90ab431fb7["../core/logger/node.js"] 20d992e7_d43b_be09_c7c7_64132ea5a375 --> 23f7d7cd_59bf_0643_9f11_6d90ab431fb7 style 20d992e7_d43b_be09_c7c7_64132ea5a375 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { AstroInlineConfig } from '../../types/public/config.js';
import { Logger } from '../logger/core.js';
import { nodeLogDestination } from '../logger/node.js';
export function createNodeLogger(inlineConfig: AstroInlineConfig): Logger {
if (inlineConfig.logger) return inlineConfig.logger;
return new Logger({
dest: nodeLogDestination,
level: inlineConfig.logLevel ?? 'info',
});
}
Domain
Subdomains
Functions
Dependencies
- ../core/logger/core.js
- ../core/logger/node.js
- ../types/public/config.js
Source
Frequently Asked Questions
What does logging.ts do?
logging.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in logging.ts?
logging.ts defines 1 function(s): createNodeLogger.
What does logging.ts depend on?
logging.ts imports 3 module(s): ../core/logger/core.js, ../core/logger/node.js, ../types/public/config.js.
Where is logging.ts in the architecture?
logging.ts is located at packages/astro/src/core/config/logging.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/core/config).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free