Skip to content

Logs Service | Logs Management

meow12 edited this page Dec 12, 2019 · 1 revision

You can only create your custom logs. Other CRUD operations are not supported to use through API.

Create Log

Request

Route Request Class Method Description
/v1/logs CreateLogRequest POST Creates a custom log.

Example

var client = new CodeMashClient(apiKey, projectId);
var logsService = new CodeMashLogsService(client);

var response = await logsService.CreateLogAsync(new CreateLogRequest
{
    Message = "My custom log",
    Items = new Dictionary<string, string>
    {
        {"key1", "value1"}
    },
    Level = "Information"
});

Attribute restrictions

Level - must be one of the values: Information, Warning, Error.



  1. Getting Started
    1.1. Register at CodeMash
    1.2. Install CodeMash
    1.3. Set up API keys

  2. Microservices
    2.1. Database
       2.1.1. Connect
       2.1.2. Insert
    2.2. Membership
       2.2.1. Connect
       2.2.2. User Registration
       2.2.3. Authentication
       2.2.4. User Management
    2.3. Files Service
       2.2.1. Connect
    2.4. Email Notifications
       2.2.1. Connect
       2.2.1. Emails
    2.5. Push Notifications
       2.2.1. Connect
       2.2.1. Devices
       2.2.1. Notifications
       2.2.1. Templates
    2.6. Scheduler
    2.7. Code Service
       2.2.1. Connect
       2.2.2. Functions
    2.8. Logs
       2.2.1. Connect
       2.2.2. Logs Management

  3. Other Services
    3.1. Project Settings
    3.2. Tokens Binding

Clone this wiki locally