> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# إعدادات الجلسة لـ log_*

> إعدادات جلسة ClickHouse ضمن المجموعة المُولَّدة log_*.

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>النوع</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>القيمة الافتراضية</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          يمكن تغييره دون إعادة التشغيل
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

تتوفر هذه الإعدادات في [system.settings](/docs/ar/reference/system-tables/settings)، وهي مُولَّدة تلقائيًا من [المصدر](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

<div id="log_comment">
  ## log\_comment
</div>

يحدّد قيمة الحقل `log_comment` في جدول [system.query\_log](/docs/ar/reference/system-tables/query_log) ونص التعليق في سجل الخادم.

يمكن استخدامه لتحسين قابلية قراءة سجلات الخادم. بالإضافة إلى ذلك، يساعد في تحديد الاستعلامات المرتبطة بالاختبار من `system.query_log` بعد تشغيل [clickhouse-test](/docs/ar/resources/develop-contribute/contribute/tests).

القيم الممكنة:

* أي String لا يزيد طوله على [max\_query\_size](/docs/ar/reference/settings/session-settings/max#max_query_size). إذا تم تجاوز max\_query\_size، فسيُصدر الخادم استثناءً.

**مثال**

الاستعلام:

```sql theme={null}
SET log_comment = 'log_comment test', log_queries = 1;
SELECT 1;
SYSTEM FLUSH LOGS;
SELECT type, query FROM system.query_log WHERE log_comment = 'log_comment test' AND event_date >= yesterday() ORDER BY event_time DESC LIMIT 2;
```

النتيجة:

```text theme={null}
┌─type────────┬─query─────┐
│ QueryStart  │ SELECT 1; │
│ QueryFinish │ SELECT 1; │
└─────────────┴───────────┘
```

<div id="log_formatted_queries">
  ## log\_formatted\_queries
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

يسمح بتسجيل الاستعلامات المنسَّقة في جدول النظام [system.query\_log](/docs/ar/reference/system-tables/query_log) (ويعبّئ العمود `formatted_query` في [system.query\_log](/docs/ar/reference/system-tables/query_log)).

القيم الممكنة:

* 0 — لا تُسجَّل الاستعلامات المنسَّقة في جدول النظام.
* 1 — تُسجَّل الاستعلامات المنسَّقة في جدول النظام.

<div id="log_processors_profiles">
  ## log\_processors\_profiles
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "24.3"},{"label": "1"},{"label": "مفعّل افتراضيًا"}]}]} />

يسجّل الوقت الذي قضاه المعالج أثناء التنفيذ/انتظار البيانات في جدول `system.processors_profile_log`.

انظر أيضًا:

* [`system.processors_profile_log`](/docs/ar/reference/system-tables/processors_profile_log)
* [`EXPLAIN PIPELINE`](/docs/ar/reference/statements/explain#explain-pipeline)

<div id="log_profile_events">
  ## log\_profile\_events
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

سجِّل إحصاءات أداء الاستعلام في query\_log وquery\_thread\_log وquery\_views\_log.
