discord-starboard-plus
Version:
Discord Starboard Plus: A clean, maintainable starboard system for Discord.js bots. Features per-guild configuration, TypeScript support. Highlight your community's favorite messages with customizable starboards.
35 lines • 1.01 kB
TypeScript
import type { Logger as ILogger, LoggerOptions, LogContext } from '../types';
/**
* Structured logger for the Starboard system.
* Provides consistent logging with timestamps, prefixes, and context.
*/
export declare class Logger implements ILogger {
private readonly enabled;
private readonly prefix;
constructor(options?: Partial<LoggerOptions>);
/**
* Log an informational message
*/
info(message: string, context?: LogContext): void;
/**
* Log a success message
*/
success(message: string, context?: LogContext): void;
/**
* Log a warning message
*/
warn(message: string, context?: LogContext): void;
/**
* Log an error message with optional Error object
*/
error(message: string, error?: Error | null, context?: LogContext): void;
/**
* Internal logging method
*/
private log;
/**
* Format context object as string
*/
private formatContext;
}
//# sourceMappingURL=Logger.d.ts.map