Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9583210
logger-mailer.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
450 B
Referenced Files
None
Subscribers
None
logger-mailer.ts
View Options
import
{
App
}
from
"../main"
;
import
Mailer
,
{
emailMessage
}
from
"./mailer"
;
import
winston
from
"winston"
;
export
default
class
LoggerMailer
extends
Mailer
{
logger
:
winston
.
Logger
;
constructor
(
app
:
App
)
{
super
(
app
);
this
.
logger
=
app
.
Logger
;
}
async
verify
()
{
return
true
;
}
async
sendEmail
({
to
,
subject
,
text
}
:
emailMessage
)
{
this
.
logger
.
info
({
message
:
"Would send an email here"
,
to
,
subject
,
text
,
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Oct 11, 09:10 (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984079
Default Alt Text
logger-mailer.ts (450 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment