AstroIntegrationLogger Class — astro Architecture
Architecture documentation for the AstroIntegrationLogger class in core.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f581162d_11db_4a08_26dd_f9c2d8988ae5["AstroIntegrationLogger"] 02538c7d_0423_3484_a5c8_415c85ba2988["core.ts"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|defined in| 02538c7d_0423_3484_a5c8_415c85ba2988 6eaca128_c1ce_730f_2408_d21bc2895c54["constructor()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| 6eaca128_c1ce_730f_2408_d21bc2895c54 af4e1025_cf48_9ca3_fbff_31ebc6f118fd["fork()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| af4e1025_cf48_9ca3_fbff_31ebc6f118fd 6cf03a64_b10c_f4cf_86da_c2fe0cf6a662["info()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| 6cf03a64_b10c_f4cf_86da_c2fe0cf6a662 30187c67_636a_7bc8_2f4c_f01a45ab12d4["warn()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| 30187c67_636a_7bc8_2f4c_f01a45ab12d4 19e356c6_6c03_a6d6_9798_9ae3d1f33c3b["error()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| 19e356c6_6c03_a6d6_9798_9ae3d1f33c3b 100a30da_65c9_4c9b_03f4_fff23c137c22["debug()"] f581162d_11db_4a08_26dd_f9c2d8988ae5 -->|method| 100a30da_65c9_4c9b_03f4_fff23c137c22
Relationship Graph
Source Code
packages/astro/src/core/logger/core.ts lines 195–223
export class AstroIntegrationLogger {
options: LogOptions;
label: string;
constructor(logging: LogOptions, label: string) {
this.options = logging;
this.label = label;
}
/**
* Creates a new logger instance with a new label, but the same log options.
*/
fork(label: string): AstroIntegrationLogger {
return new AstroIntegrationLogger(this.options, label);
}
info(message: string) {
info(this.options, this.label, message);
}
warn(message: string) {
warn(this.options, this.label, message);
}
error(message: string) {
error(this.options, this.label, message);
}
debug(message: string) {
debug(this.label, message);
}
}
Defined In
Source
Frequently Asked Questions
What is the AstroIntegrationLogger class?
AstroIntegrationLogger is a class in the astro codebase, defined in packages/astro/src/core/logger/core.ts.
Where is AstroIntegrationLogger defined?
AstroIntegrationLogger is defined in packages/astro/src/core/logger/core.ts at line 195.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free