@xtr-dev/payload-mailing
Version:
Template-based email system with scheduling and job processing for PayloadCMS
17 lines • 669 B
TypeScript
import type { Payload } from 'payload';
/**
* Get or create the plugin logger instance
* Uses PAYLOAD_MAILING_LOG_LEVEL environment variable to configure log level
* Defaults to 'info' if not set
*/
export declare function getPluginLogger(payload: Payload): any;
/**
* Create a context-specific logger for a particular operation
*/
export declare function createContextLogger(payload: Payload, context: string): {
debug: (message: string, ...args: any[]) => any;
info: (message: string, ...args: any[]) => any;
warn: (message: string, ...args: any[]) => any;
error: (message: string, ...args: any[]) => any;
};
//# sourceMappingURL=logger.d.ts.map