# Configure Diagnostic Logging Safely

### How to Configure Diagnostic Logging Safely in Muhasib ERP

### Overview

This guide will help you enable only the diagnostic detail needed for a controlled investigation, then return logging to its normal level.

The logging framework can emit more detail, increasing storage, privacy exposure, and performance cost.

### Who can do this

You need access to Instance Settings and authorization to collect diagnostic or tax-integration data.

### Before you start

Identify the issue, reproduction window, approved log destination, retention period, and fields that must be redacted.

<div id="bkmrk-%F0%9F%9A%A8-importantmake-sure" style="border-left: 4px solid #dc2626; background: #fef2f2; padding: 12px 16px; margin: 15px 0; border-radius: 4px;">Before saving, check that the correct company is open and that you have permission to complete this task.</div>### Where to find it

Back Office → Settings → Instance Settings → Log Settings.

### Configure Diagnostic Logging Safely

#### Step 1: Record current logging options

#### Step 2: Select only required levels: Error, Warn, Info, or Debug; use

Select only required levels: Error, Warn, Info, or Debug; use All only for a short approved capture.

#### Step 3: Enable debugging only when requested by authorized support

#### Step 4: Enable Tax Logs only in a sandbox or under approved

Enable Tax Logs only in a sandbox or under approved sensitive-data handling.

#### Step 5: Save and restart if required

#### Step 6: Reproduce the issue once

#### Step 7: Collect and sanitize the relevant time window

#### Step 8: Restore normal logging and remove temporary sensitive copies according to

Restore normal logging and remove temporary sensitive copies according to policy.

### Check your work

Confirm the required event appears without credentials, tokens, personal data, or unnecessary transaction content.

<div id="bkmrk-%F0%9F%92%A1-tipcheck-the-saved" style="border-left: 4px solid #2563eb; background: #eff6ff; padding: 12px 16px; margin: 15px 0; border-radius: 4px;">Take a moment to check your work before closing the window. This small check can save time later.</div>### If something goes wrong

- Never publish raw logs.
- Do not leave Debug/All/Tax logging enabled indefinitely.

### Related guides

- [Request Muhasib Support](https://docs.muhasiberp.com/link/573)
- [Configure Tax Integrations](https://docs.muhasiberp.com/link/195)
- [Resolve a Muhasib Startup Interruption](https://docs.muhasiberp.com/link/553)

### What to do next

<div id="bkmrk-%E2%9C%85-next-actioncontinu" style="border-left: 4px solid #16a34a; background: #f0fdf4; padding: 12px 16px; margin: 15px 0; border-radius: 4px;">[**Request Muhasib Support**](https://docs.muhasiberp.com/link/573).</div>