Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / LogDriver

Class: LogDriver

Defined in: notifications/src/drivers/LogDriver.ts:7

Log driver — writes email content to the console or a log file. The safe default for development and tests; no email is actually sent.

Implements

Constructors

Constructor

new LogDriver(_channel?): LogDriver

Defined in: notifications/src/drivers/LogDriver.ts:8

Parameters

_channel?

string = "console"

Returns

LogDriver

Methods

send()

send(message): Promise<void>

Defined in: notifications/src/drivers/LogDriver.ts:10

Parameters

message

MailPayload

Returns

Promise<void>

Implementation of

MailDriver.send