try { // Attempt an action in Kaltura } catch (Exception $e) { $message = $e->getMessage(); KalturaLog::err($message); }
$error = "User not authorized to access asset!"; KalturaLog::err($error);In this example, KalturaLog err is used to simply record an error message in the Kaltura system log. This can be useful for keeping a record of potentially problematic issues that may need to be addressed in the future. The KalturaLog function is part of the Kaltura PHP Client library, a package that provides developers with a set of tools for interacting with the Kaltura API.