Skip to content

Commit 8512125

Browse files
authored
Merge pull request #1 from vaibhavmalave1994/patch-1
Update Logging.php
2 parents 0ea8925 + 0928ae3 commit 8512125

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Logging.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,16 @@ public function publishMessage($message_details, $queueName)
186186
}
187187
}
188188

189-
189+
/**
190+
* Send an api log
191+
*
192+
* @param array $message The log message
193+
* @param array $data Additional data
194+
*/
195+
public function api($message, array $data = [])
196+
{
197+
$this->log('api', $message, $data);
198+
}
190199

191200
/**
192201
* Send an info log

0 commit comments

Comments
 (0)