Skip to main content
Glama
log-parser.d.ts962 B
import type { ErrorEntry, Config } from './types/index.js'; export declare class LogParser { private patterns; private errorHistory; private historyLimit; constructor(config: Config); updateConfig(config: Config): void; parseLog(logLine: string): ErrorEntry | null; private createErrorEntry; private extractField; private addToHistory; private trimHistory; getHistory(): ErrorEntry[]; getErrorsForFile(filepath: string): ErrorEntry[]; getErrorsBySeverity(severity: ErrorEntry['severity']): ErrorEntry[]; getErrorsByCategory(category: ErrorEntry['category']): ErrorEntry[]; getRecentErrors(count?: number): ErrorEntry[]; clearHistory(): void; getErrorCounts(): { critical: number; warning: number; info: number; }; getCategoryCounts(): Record<ErrorEntry['category'], number>; getFileCounts(): Record<string, number>; } //# sourceMappingURL=log-parser.d.ts.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mntlabs/devserver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server