Smarty

  1. Home
  2. Docs
  3. Smarty
  4. Smarty configuration and maintenance
  5. Logging configuration

Logging configuration

In the Smarty configuration file, you can set the following options:

  • LOG_FILE_OWNER_USER — username of the log file owner. Data type: string. By default www-data.
  • LOG_FILE_OWNER_GROUP — the name of the user-owner group of log files. Data type: string. By default www-data.
  • LOGGING — Logging configuration. Data type: dict.

Example of changing standard logging levels:

LOGGING['loggers']['smarty_content_requests']['level'] = 'ERROR'
LOGGING['loggers']['smarty_accounts']['level'] = 'INFO'
LOGGING['loggers']['smarty_messaging']['level'] = 'ERROR'
LOGGING['loggers']['clever_cache']['level'] = 'INFO'
LOGGING['loggers']['smarty_api_requests']['level'] = 'ERROR'
LOGGING['loggers']['smarty_stream_services']['level'] = 'ERROR'
LOGGING['loggers']['smarty_billing_out']['level'] = 'DEBUG'
LOGGING['loggers']['smarty_billing_in']['level'] = 'DEBUG'
LOGGING['loggers']['smarty_main']['level'] = 'ERROR'

Logging levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. Depending on the level, the amount of logged information changes (from DEBUG debugging information to CRITICAL only critical error reports).

List of all loggers:

  • smarty_accounts_handler — information about attempts to authorize accounts and actions with accounts.
  • smarty_billing_out_handler — external billing requests via External API.
  • smarty_billing_in_handler — Billing API requests from outside.
  • smarty_payment_handler — requests to payment gateways.
  • smarty_portal_handler — portal logs.
  • smarty_epg_handler — logs associated with EPG.
  • smarty_admin_handler — logging actions and data changes in the control panel.
  • smarty_content_request_handler — Logging content queries and generated URLs.
  • smarty_api_request_handler — logging API requests and method processing results.
  • smarty_messaging_handler — logging the mailing of messages.
  • smarty_management_handler — logging service and regular teams.
  • smarty_cache_handler — logging caching and disability operations.
  • smarty_main_handler — logging major errors in the work (here you can also find a detailed stack and description of errors in the form of 500 Server Error).
  • smarty_stream_services_handler — logging the results of the streaming services sampling algorithm for a particular account.
  • smarty_videoservices_handler — Logging requests to video server APIs.
  • smarty_sms_handler — logging of interaction operations with SMS gateways.
  • smarty_rq_handler — Logging of Cluster Operations (Redis Q).
  • smarty_device_monitoring_handler — logging operations of the device monitoring module (MVision).
  • smarty_w_api_handler — logging operations of the WindyCast module.
  • smarty_custom_handler — custom logs (used, as a rule, in custom integration modules designed for the operator).
  • smarty_megogo_handler — logging operations of the MEGOGO integration module.
  • smarty_tvzavr_handler — logging operations of the integration module with TVZavr.
  • smarty_hbb_handler — logging operations of the integration module with HBB providers.
  • smarty_ad_handler — logging operations of the integration module with advertising providers.
  • smarty_irdeto_handler — logging operations of the integration module with Irdeto KMS.

Logging level of all loggers by default — DEBUG. To optimize disk space consumed and increase performance, it is recommended to adjust the logging level according to your needs and reduce it for unused logs.
The way to preserve the dens /var/log/microimpuls/smarty.