bun-sqlite-orm
Version:
A lightweight TypeScript ORM for Bun runtime with Bun SQLite, featuring Active Record pattern and decorator-based entities
21 lines (17 loc) • 719 B
text/typescript
import { BaseLogger } from './base-logger';
export interface PinoLoggerOptions {
writeToFile?: boolean;
fileName?: string;
level?: 'debug' | 'info' | 'warn' | 'error';
}
export class PinoDbLogger extends BaseLogger {
constructor(private options: PinoLoggerOptions = {}) {
super();
console.warn('PinoDbLogger is not fully implemented yet. Install pino as a peer dependency.');
}
protected log(level: string, message: string, meta?: unknown): void {
// Fallback implementation until pino is properly integrated
const logMethod = console[level.toLowerCase() as keyof Console] as typeof console.log;
logMethod(`[${level}] ${message}`, meta || '');
}
}