Logging
The logging service is only available in Cloud Code. It allows you to log messages to your app's Error Logs which can be found via the Monitoring | Global Monitoring | Recent Errors page of the brainCloud portal.
API Summary
Log Messages
Standard info, warning, and error logging APIs:
- LogInfo - Logs an info message with string-based context.
- LogInfoJson - Logs an info message with string-based context.
- LogWarning - Logs an warning with string-based context.
- LogWarningJson - Logs an warning with json context.
- LogError - Logs an error with string-based context.
- LogErrorJson - Logs an error with json context.
As of Release 3.11 these methods have been added to the bridge for convenience.
Debugging
brainCloud now supports debug-level log messages, which display only in the activity pane of the Cloud Code Editor and API Explorers. They are not written to the logging database.
The debug-level log APIs are only available from the bridge
.
📄️ LogError
Logs an App Error message to the error log.
📄️ LogErrorJson
Logs an App Error message to the error log.
📄️ LogInfo
Logs an App Info message to the error log.
📄️ LogInfoJson
Logs an App Info message to the error log.
📄️ LogWarning
Logs an App Warning message to the error log.
📄️ LogWarningJson
Logs an App Warning message to the error log.