mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
21 lines
2.8 KiB
Markdown
21 lines
2.8 KiB
Markdown
# LogLineRequest
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { Level, LogLineRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
|
|
|
let value: LogLineRequest = {
|
|
level: Level.One,
|
|
message: "Test log message",
|
|
source: "Postman",
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description | Example |
|
|
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
| `level` | [operations.Level](../../../sdk/models/operations/level.md) | :heavy_check_mark: | An integer log level to write to the PMS log with.<br/>0: Error<br/>1: Warning<br/>2: Info<br/>3: Debug<br/>4: Verbose<br/> | |
|
|
| `message` | *string* | :heavy_check_mark: | The text of the message to write to the log. | Test log message |
|
|
| `source` | *string* | :heavy_check_mark: | a string indicating the source of the message. | Postman | |