en En
es Es

Logging in BILLmanager

BILLmanager saves information about its operation in log files. Log data can be used for platform diagnostics.

Logging configuration

The logging level determines the detail of information recorded in logs. The higher the value, the more detailed the information.

Logging levels:

  • 1 — notices;
  • 2 — critical errors;
  • 3 — errors;
  • 4 — warnings;
  • 5 — request information;
  • 6 — extended information;
  • 7 — remote service notifications;
  • 8 — code tracing;
  • 9 — debug information.
Detailed logs consume more disk space. After completing diagnostics, we recommend that you reset the logging level to the default value.

Via web interface

To change the logging level, in the main menu go to SettingsLogging settings → select modules → click:

  • Edit to configure the logging level for selected modules;
  • Default to remove logging configuration for selected modules from the configuration file. The logging level for * All modules will be used;
  • Maximum to set the maximum logging level for selected modules.

Changing the logging level for * All modules will change the level for all modules with status "Default logging configuration" (marked in the list with icon).

If the required service is not displayed in the list, you can configure its logging level via the configuration file /usr/local/mgr5/etc/debug.conf. See the COREmanager documentation article Logging configuration (debug.conf) for details.

Via configuration file

To change the logging level:

  1. Connect to the platform server via SSH. For more information on SSH connection, see the article Workstation setup.
  2. Add a line with the module name and required logging level to the file /usr/local/mgr5/etc/debug.conf. For example, an entry for the pmvmmgr6.log module log file:

    pmvmmgr6.* 9

To restore the default logging level, delete the added lines from the file /usr/local/mgr5/etc/debug.conf.

When changing the logging level for the main platform log billmgr.log, a platform restart may be required. Restart the platform with the command:

/usr/local/mgr5/sbin/mgrctl -m billmgr -R

When changing the logging level for ihttpd.log, the web server ihttpd must be restarted:

systemctl restart ihttpd

List of log files

Log files are stored in the directory /usr/local/mgr5/var/

Archived log files are stored in the directory /usr/local/mgr5/var/logs/

Main log files

File nameContents
billmgr.log

Contains BILLmanager operations.

billmaintain.logLog file of the sbin/billmaintain utility that performs scheduled operations.
billmgr.auth.logBILLmanager authentication log.
billmgr.long.logLog of long requests to the BILLmanager panel. By default, operations taking longer than five minutes are recorded.
billfix.logLogs of operations that fix BILLmanager data errors.
globalindex.logLogs of the sbin/globalindex utility that indexes database records for Global search functionality.
ihttpd.logWeb server ihttpd operation logs.
licctl.logSoftware license verification and activation.
longtask.logBackground task processing.
mgrctl.logLog file of the mgrctl utility that provides interaction with BILLmanager software.
mysql.logLogs of the sbin/mysql-billmgr utility that provides interactive database connection to BILLmanager.
mysqlstat.logDatabase management system statistics.
ntemail.logEmail message sending.
ntinternal.logSending messages to the BILLmanager Notification module.
ntmessenger.logMessenger message sending.
ntsms.logSMS message sending.
pkgcheck.logLogs of the etc/scripts/pkgcheck.sh utility that fixes software package issues.
pkg.logWorking with BILLmanager software packages in the system using the OS package manager.
qrcode.logLogs of the cgi/qrcode utility for generating QR codes when setting up Two-step authentication.
remotetaskctl.logLogs of the Task proxying module.
usagestat.logStatistics collection logs.
xmlinstall.logCaching XML files to accelerate platform performance.

Message gateways

Related articles:

File nameModule
gwclickatell.log Clickatell SMS gateway.
gwdevinotele.logDevino Telecom SMS gateway.
gwgreensms.logGREENSMS SMS gateway.
gwmobilmoney.logMobilMoney SMS gateway.
gwqtelecom.logQuickTelecom SMS gateway.
gwsmsc.logSMS-center SMS gateway.
gwsmscustom.loghttp-SMS SMS gateway.
gwsmstraffic.logSMS Traffic SMS gateway.
gwturbosms.logTurboSMS SMS gateway.
gwlocalmail.logClickatell SMS gateway.
gwremotemail.logWorking with third-party email services (Gmail, Yandex, Mail, etc.) via POP3, IMAP, SMTP.
gwtelegram.logTelegram gateway.
telegram_webhook.logTelegram webhook request handler logs.

Phone verification

Related articles:

File nameModule
fgsmsc.logSMS-center (call).
fgtelesign.logTeleSign.
fgsmsgate.log

Other SMS gateways.

Service processing

Related articles:

File nameService handler name
pmauto.log"No processing"
pmbillmgr.logReselling  via BILLmanager
pmcpanel.logcPanel
pmdcimgr6.logDCImanager 6
pmdcimgr.logDCImanager 5
pmdirecti.logResellerClub
pmdnsmgr.log DNSmanager
pmdrs.logDRS
pmenom.logEnom
pmenomssl.logEnom SSL
pmepp.logEPP-module
pmevonames.logEvoNames
pmglobalsign.logGlobalSign
pmgogetssl.log GoGetSSL
pmhostmaster.logHostMaster
pmipmgr.logIPmanager
pmispmgr4.logISPmanager 4
pmispmgr5.logISPmanager 5
pmispmgr6.logISPmanager 6
pmleadertelecom.logLeaderTelecom
pmmanual.log Manual processing
pmmastername.logmastername
pmnamecheapdomain.logNamecheap (domains)
pmnamecheapssl.logNamecheap (SSL)
pmnaunet.logNauNet RU
pmnic.logRU-Center
pmnorid.logNorid
pmonlinenic.logOnlineNIC
pmopenprovider.logOpenProvider
pmopenstack.logOpenStack
pmopenstackvds.logOpenStack (VPS)
pmplesk.logPlesk
pmr01.logR01
pmregru.logREG.RU
pmresellerclub.logResellerClub
pmshellscripts.logShellScripts
pmthesslstore.logThe SSL Store
pmtucows.logTucows
pmukrnames.logUkrnames
pmvdsmgr.logVDSmanager
pmveeam.logVeeam
pmvmmgr6-iaas.logVMmanager 6 IaaS
pmvmmgr6.logVMmanager 6
pmvmmgr.logVMmanager
pmvmware.log VMware vCloud Director
pmvmwarevds.logVMware vCloud Director (VPS)
pmwebnames.logWebNames

Payment methods

Log files for billing platform interaction with payment modules are described in the articles in the Payment gateway section.

Ticket management modules

Related articles:

File nameContents
pmtelegram.logLogs of the Telegram request handling module.
telegram_support_webhook.logLogs of the user message handler for messages sent via Telegram.

Log management

Modules can write their events to different log files, so the module name in logging settings may differ from the log file name.

Example line in billmgr.log
Mar 21 08:45:12 [2962:1] <module_name> <log_level> Query: 'SELECT nc.* FROM notifytemplate nt JOIN notifycontent nc ON nc.notifytemplate = nt.id WHERE nt.notice = 'sitebuilderopen' AND nt.project IS NULL'

Where:

  • Mar 21 08:45:12 — event timestamp according to server system time;
  • [2962:1] — log thread. Unique identifier where:
    • first value — Linux OS process ID. This value changes after BILLmanager platform restart;
    • second value — unique BILLmanager platform request ID. Each request has its own number for tracking in logs.
  • <log_level> — can have the following values:
    • NOTE — notices;
    • FATAL — critical errors;
    • ERROR — errors;
    • WARNING — warnings;
    • INFO — request information;
    • EXTINFO — extended information;
    • EXT — remote service notifications;
    • TRACE — code tracing;
    • DEBUG — debug information.

Diagnostics

This section provides an example of diagnostics using the main platform log billmgr.log. Other logs may also be required for diagnostics. For example, payment issues are logged in payment module logs, while resale problems are logged in the interaction log between selling and reselling billing systems. All log files are located in /usr/local/mgr5/var/. Service-specific log names are listed in the integration article for that service. For example, PayMaster payment issue logs are listed in the PayMaster article.

The main platform log billmgr.log records all major events and errors. To check for errors in the main log, run the command:

grep 'ERROR' /usr/local/mgr5/var/billmgr.log

To view current logs, run the command:

tail -f /usr/local/mgr5/var/billmgr.log

You can diagnose most issues using the log display command. To do this:

  1. Open the BILLmanager interface section where the incorrect behavior occurs.
  2. Connect to the platform server via SSH. For more information on SSH connection, see the Workstation setup article.
  3. Open the real-time log with the command:

    tail -f /usr/local/mgr5/var/billmgr.log
  4. Reproduce the incorrect behavior in the interface.

As a result, the log will display the error and the request preceding it, helping identify the cause of the incorrect behavior.

You can similarly diagnose any log file, such as a service handler log.

Log rotation

Log rotation is the automatic process of archiving and cleaning log files when they reach a specified size. In BILLmanager, each log file is limited to 100 MB by default. All logs are written to the /usr/local/mgr5/var/ directory. When a file reaches its maximum size, the system:

  1. Moves the log content to the /usr/local/mgr5/var/logs/ directory and compresses it into an archive.
  2. Adds a suffix to the archived filename containing:
    • creation date and time in YYYY_MM_DD_HH_MM_SS format;
    • sequence number to ensure uniqueness if multiple files are rotated within the same second.
  3. Clears the original file content. Writes the full name of the created archive as the first line.
Example archived filename after rotation:
billmgr.log.2026_02_03_15_3022_01.0.gz

Rotation parameter configuration

You can control log rotation using global parameters in the /usr/local/mgr5/etc/debug.conf file:

  • max_log_size — maximum log file size in bytes before rotation; default value is 104857600 (100 MB);
  • color — colored log formatting. Valid values:
    • on — enabled (default);
    • off — disabled.
  • storage — log output method. Valid values:
    • file — write to file (default).
    • console — output to stdout.

Python plugin log rotation

For plugins written in Python using the billmgr.logging module from the BILLmanager SDK (Software Development Kit), automatic log rotation is implemented at 100 MB. Changing the file size is not supported. The archive name is not written during rotation.

May be useful

Knowledge base articles: