aegis-auth
Version:
A credentials-based auth solution for Next.js (and other Node projects) with IP rate-limiting, account lockouts, and sessions in DB.
14 lines • 601 B
TypeScript
import { LogLevel } from "../types";
export declare class ConsoleLogger {
private logLevel;
constructor(level?: LogLevel);
debug(message: string, context?: Record<string, unknown>): void;
info(message: string, context?: Record<string, unknown>): void;
warn(message: string, context?: Record<string, unknown>): void;
error(message: string, context?: Record<string, unknown>): void;
securityEvent(eventName: string, context?: Record<string, unknown>): void;
private shouldLog;
private getLogLevelValue;
private logWithLevel;
}
//# sourceMappingURL=logger.d.ts.map