# Log Message

This method is used to write a log (record) message to PAW Orchestrator.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `LogLevel` | `ELogLevel` | ✅Yes     | Log level   |
| `Message` | `String` | ✅Yes     | Log message |
| `Id`      | `Guid?` | ❌No      | Related work ID |


---

### 🎯 Purpose

* Keep information, warning and error records during process runs
* Make debug and monitoring processes easier
* Enable the workflow to be tracked step by step


---

### ⚙️ How It Works

* When the method is called, a log record is created in Orchestrator within the scope of the related process and work item (work)
* Logs can be examined in real time during process runs or afterwards
* Log records are used for error analysis and performance tracking


---

### 📥 Input Parameters

#### 🔹 Message

The text to be written as a log.


---

#### 🔹 Level (Optional)

Determines the log level.

Common levels:

* **Info**: Informational records
* **Warning**: Possible risks or situations that require attention
* **Error**: Error situations
* **Debug**: Records for development and detailed monitoring


---

### 📌 Features

* Process-based and work-based logging can be done
* Logs are kept centrally on Orchestrator
* Can be used for filtering and analysis


---

### ⚠️ Important Notes

* Log messages should be meaningful and descriptive
* Giving detailed information in error situations is recommended
* Unnecessary or excessive logging may affect performance


---

### 💡 Example Usage Scenarios

* Process start and end logs
* Monitoring of critical steps
* Error catching and detailed description
* Recording of API calls and data flows


---

### 🔁 Usage Benefit

The Log Message method increases the traceability of processes and enables possible problems to be detected quickly. It is a critical tool for debug and operations teams.