Skip to content

Commit 3224c68

Browse files
committed
ICL: getNotificationLevel method added.
1 parent 32520bf commit 3224c68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Loggable.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ protected function getMailerHandler()
8080

8181
$subject = $this->getNotificationSubject();
8282
$from = $this->getNotificationFrom();
83+
$level = $this->getNotificationLevel();
8384

84-
$mailerHandler = new NativeMailerHandler($recipients, $subject, $from, Logger::NOTICE);
85+
$mailerHandler = new NativeMailerHandler($recipients, $subject, $from, $level);
8586
$mailerHandler->setContentType('text/html');
8687
$mailerHandler->setFormatter(new HtmlFormatter());
8788

@@ -152,6 +153,11 @@ protected function getNotificationFrom()
152153
return 'ICLogger Notification <[email protected]>';
153154
}
154155

156+
protected function getNotificationLevel()
157+
{
158+
return Logger::NOTICE;
159+
}
160+
155161
protected function icLogger()
156162
{
157163
return $this->icLogger;

0 commit comments

Comments
 (0)