> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/LabtechConsulting/LabTech-Powershell-Module/llms.txt
> Use this file to discover all available pages before exploring further.

# Set-LTLogging

> Configure the agent logging verbosity level.

## Synopsis

Stops the LabTech service, writes the selected logging level to `HKLM:\SOFTWARE\LabTech\Service\Settings` (`Debuging` key), then restarts the service. Calls `Get-LTLogging` on success to confirm the new value.

## Syntax

```powershell theme={null}
Set-LTLogging [-Normal] [-Verbose] [<CommonParameters>]
```

<Note>
  Exactly one of `-Normal` or `-Verbose` must be provided. The cmdlet throws a terminating error if neither switch is supplied.
</Note>

## Parameters

<ParamField path="Normal" type="switch">
  Sets the logging level to Normal. Writes registry value `Debuging = 1`.
</ParamField>

<ParamField path="Verbose" type="switch">
  Sets the logging level to Verbose. Writes registry value `Debuging = 1000`. Use this level when troubleshooting agent connectivity or behavior.
</ParamField>

## Examples

Set logging to normal:

```powershell theme={null}
Set-LTLogging -Normal
```

Set logging to verbose for troubleshooting:

```powershell theme={null}
Set-LTLogging -Verbose
```

Confirm the result immediately after setting:

```powershell theme={null}
Set-LTLogging -Normal; Get-LTLogging
```

## Related commands

* [Get-LTLogging](/reference/get-ltlogging)
