nodeLogDestination.write() — astro Function Reference
Architecture documentation for the nodeLogDestination.write() function in node.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD fddedaaf_140b_0b8a_ca60_fdd9f8c0a729["nodeLogDestination.write()"] 51ee7613_adf0_a94b_10b9_892d647031ea["node.ts"] fddedaaf_140b_0b8a_ca60_fdd9f8c0a729 -->|defined in| 51ee7613_adf0_a94b_10b9_892d647031ea style fddedaaf_140b_0b8a_ca60_fdd9f8c0a729 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/logger/node.ts lines 10–22
write(event: LogMessage) {
let dest: ConsoleStream = process.stderr;
if (levels[event.level] < levels['error']) {
dest = process.stdout;
}
let trailingLine = event.newLine ? '\n' : '';
if (event.label === 'SKIP_FORMAT') {
dest.write(event.message + trailingLine);
} else {
dest.write(getEventPrefix(event) + ' ' + event.message + trailingLine);
}
return true;
},
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does nodeLogDestination.write() do?
nodeLogDestination.write() is a function in the astro codebase, defined in packages/astro/src/core/logger/node.ts.
Where is nodeLogDestination.write() defined?
nodeLogDestination.write() is defined in packages/astro/src/core/logger/node.ts at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free