SmtpAppender
@tsed/logger-smtp
Usage
typescript
import { SmtpAppender } from "@tsed/logger-smtp";
Overview
ts
class SmtpAppender extends BaseAppender {
configure(config: PartialAppenderConfiguration): this;
build(): void;
write(loggingEvent: LogEvent): void;
shutdown(complete: any): any;
protected sendBuffer(): void;
protected scheduleSend(): void;
}
Description
SMTP Appender. Sends logging events using SMTP protocol. It can either send an email on each event or group several logging events gathered during specified interval.
config.sendInterval time between log emails (in seconds), if 0 then every event sends an email config.shutdownTimeout time to give up remaining emails (in seconds; defaults to 5).
configure
ts
configure(config: PartialAppenderConfiguration): this;
build
ts
build(): void;
write
ts
write(loggingEvent: LogEvent): void;
shutdown
ts
shutdown(complete: any): any;
protected sendBuffer
ts
protected sendBuffer(): void;
protected scheduleSend
ts
protected scheduleSend(): void;