UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

12 lines (11 loc) 626 B
import { AstroLogger, type AstroLoggerLevel } from './core.js'; import type { LoggerHandlerConfig } from './config.js'; import type { AstroConfig, AstroInlineConfig } from '../../types/public/index.js'; export declare function loadLogger(config: LoggerHandlerConfig, level?: AstroLoggerLevel): Promise<AstroLogger>; /** * It attempts to load a logger from the entrypoint. * If not provided, it creates a new logger instance on the fly. * @param astroConfig * @param inlineAstroConfig */ export declare function loadOrCreateNodeLogger(astroConfig: AstroConfig, inlineAstroConfig: AstroInlineConfig): Promise<AstroLogger>;