MCPcopy Create free account
hub / github.com/devcontainers/cli / createPlainLog

Function createPlainLog

src/spec-utils/log.ts:109–118  ·  view source on GitHub ↗
(write: (text: string) => void, getLogLevel: () => LogLevel)

Source from the content-addressed store, hash-verified

107}
108
109export function createPlainLog(write: (text: string) => void, getLogLevel: () => LogLevel): LogHandler {
110 return {
111 event(e) {
112 const text = logEventToFileText(e, getLogLevel());
113 if (text) {
114 write(text);
115 }
116 },
117 };
118}
119
120export function createTerminalLog(write: (text: string) => void, _getLogLevel: () => LogLevel, _sessionStart: Date): LogHandler {
121 return {

Calls

no outgoing calls

Tested by

no test coverage detected