Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.16
Sv translation
languageru

Для удобства отслеживания работы процессов , подсистема протоколирования имеет шесть уровней:

Название уровня

Описание

fatal

Показывает ошибки, которые препятствуют дальнейшей работе процесса.

error

Показывает сообщения об ошибках, которые не являются критическими для работоспособности процесса.

warning

Выводит сведения о потенциально опасных ситуациях.

info

Общая полезная информация о процессе (старт/стоп, применение конфигураций и т. д.).

debug

Выводит информацию, которая чаще всего используется для диагностики работы сервиса (IT, системные администраторы и т. д.).

trace

Чаще всего используется для отслеживания кода разработчиками.

Настройка уровней протоколирования

Предупреждение
titleВажно!

Следует учитывать, что изменение уровня протоколирования на более подробный может значительно снизить производительность Системы.

Конфигурационные файлы хранятся в директории /opt/iw/tm5/etc. По умолчанию все процессы имеют уровень протоколирования warning.

Чтобы изменить уровень протоколирования для процессов Traffic Monitor Server:

  1. В конфигурационном файле нужного процесса , в секции секции Logging установите для параметра GlobalLevel необходимое нужное значение.
  2. Cохраните Сохраните измененный файл.
  3. После внесения изменений в системный журнал , перезапустите процесс:
    iwtm restart <имя_службы> 

Все логи процессов по умолчанию хранятся в каталоге /var/log/infowatch.

Для экстракторов, у которых нет отдельного конфигурационного файла, настройте уровень протоколирования в конфигурационном файле /opt/iw/tm5/etc/config-perm/bookworm/extractors.xml:

  1. Откройте конфигурационный файл;.
  2. Для параметра text-extractor добавьте значение –l <level>, где <level> - – уровень протоколирования. Например: 
          <Command>bin/text-extractor –l error -t ooxml -i ${OUTDIR}"<Command>
  3. После внесения изменений , перезапустите процессы:
    iwtm restart bookworm
    iwtm restart warpd
Информация
titleПримечание:

Данный тип настройки протоколирования доступен для экстракторов следующих форматов: docxDOCX, htmlHTML, msofficeMSOFFICE_xmlXML, msoleMSOLE, odpODP, odtODT, pptxPPTX, xlsxXLSX, xmlXML.

Sv translation
languageen

For the convenience of monitoring processes, the logging subsystem has 6 levels:

Level

Description

fatal

Writes errors that are critical for the process operation

error

Writes messages about errors that are not critical for the process operation

warning

Writes information about potentially dangerous cases

Information

General information about the process that can be useful (process start/stop, applying configurations, etc.)

debug

Writes information which is mostly used to diagnose the service operation (IT, system administrators and so on)

trace

Mostly used by programmers to track the code

Configuring logging levels

Предупреждение
titleWarning!

Please, note that choosing a more detailed logging level may significantly reduce the System performance.

Configuration files are located in the /opt/iw/tm5/etc directory. By default, the warning level is used for all processes.

To change the logging level for Traffic Monitor Server processes:

  1. In the configuration file of the required process, find the Logging section and set the needed value for GlobalLevel  parameter.
  2. Save changes.
  3. After you have changed the system log, restart the process:
    iwtm restart <service_name> 

By default, all process logs are stored in the /var/log/infowatch directory.

For extractors which do not have a separate configuration file, the logging level can be set in the /opt/iw/tm5/etc/config-perm/bookworm/extractors.xml configuration file: 

  1. Open the configuration file.
  2. For text-extractor parameter, add the value –l <level>, where <level> is the logging level. For example:
         <Command> bin/text-extractor –l error -t ooxml -i ${OUTDIR}"<Command>
  3. After you have made changes, restart processes:
    iwtm restart bookworm
    iwtm restart warpd
Информация
titleNote:

This type of configuring the logging level is only available for extractors of the following formats: docx, html, msoffice_xml, msole, odp, odt, pptx, xlsx, xml.