import { resolve } from 'node:path';
import { createServerLogger } from './server-logger.js';
const workspaceLoggers = new Map();
export function getWorkspaceOperationLogger(stateRoot) {
    const resolvedStateRoot = resolve(stateRoot);
    const cached = workspaceLoggers.get(resolvedStateRoot);
    if (cached) {
        return cached;
    }
    const logger = createServerLogger({
        stateRoot: resolvedStateRoot,
        console: false,
    });
    workspaceLoggers.set(resolvedStateRoot, logger);
    return logger;
}
//# sourceMappingURL=workspace-operation-logger.js.map