astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
16 lines (15 loc) • 687 B
TypeScript
import { AstroLogger, type AstroLoggerDestination, type AstroLoggerLevel, type AstroLoggerMessage } from '../core.js';
import type { AstroInlineConfig } from '../../../types/public/index.js';
export type JsonHandlerConfig = {
/**
* Whether the JSON line should format on multiple lines
*/
pretty?: boolean;
/**
* The level of logs that should be printed by the logger.
*/
level?: AstroLoggerLevel;
};
export declare const SGR_REGEX: RegExp;
export default function jsonLoggerDestination(config?: JsonHandlerConfig): AstroLoggerDestination<AstroLoggerMessage>;
export declare function createJsonLoggerFromFlags(config: AstroInlineConfig): AstroLogger;