Skip to content

Commit df1a035

Browse files
author
vaibhav
committed
Added function to log APIs
1 parent 0ea8925 commit df1a035

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Logging.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ public function publishMessage($message_details, $queueName)
186186
}
187187
}
188188

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

190201

191202
/**

0 commit comments

Comments
 (0)