Update src/Appwrite/Platform/Action.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Christy Jacob 2025-06-26 15:05:55 +04:00 committed by GitHub
parent dbc7e5b42d
commit 5761320bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,20 @@ class Action extends UtopiaAction
}
}
public function dump(string $method, string $log, string $type = 'info', ?Document $project = null, string $collectionId = '')
/**
* Dump Log Message
*
* Logs messages to console with timestamp, method context, and project details.
* Supports multiple log types: success, error, log, warning, and info (default).
*
* @param string $method The calling method name
* @param string $log The log message
* @param string $type The log type (success, error, log, warning, info)
* @param Document|null $project The project document for context
* @param string $collectionId The collection identifier
* @return void
*/
public function dump(string $method, string $log, string $type = 'info', ?Document $project = null, string $collectionId = ''): void
{
if (empty($project)) {
$project = new Document([]);