GET
/
log
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
using LukeHagar.PlexAPI.SDK.Models.Requests;

var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");

var res = await sdk.Log.LogLineAsync(
    level: Level.Three,
    message: "Test log message",
    source: "Postman"
);

// handle response
This response does not have an example.

Authorizations

X-Plex-Token
string
header
required

Plex Authentication Token

Query Parameters

level
enum<integer>
required

An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose

Available options:
0,
1,
2,
3,
4
message
string
required

The text of the message to write to the log.

Example:

"Test log message"

source
string
required

a string indicating the source of the message.

Example:

"Postman"

Response

200
_mintlify/placeholder

Log Message Posted successfully