postLogWithHttpInfo method

Future<Response> postLogWithHttpInfo(
  1. MmPostLogRequest mmPostLogRequest
)

Add log message

Add log messages to the server logs. ##### Permissions Users with manage_system permission can log ERROR or DEBUG messages. Logged in users can log ERROR or DEBUG messages when ServiceSettings.EnableDeveloper is true or just DEBUG messages when false. Non-logged in users can log ERROR or DEBUG messages when ServiceSettings.EnableDeveloper is true and cannot log when false.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postLogWithHttpInfo(
  MmPostLogRequest mmPostLogRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/logs';

  // ignore: prefer_final_locals
  Object? postBody = mmPostLogRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}