This is an old revision of the document!
====== The Logs of System-Related about AsterCC ====== <note tip> ** Log Files **:It is a file or file sets that saved operation for the event records including the kernel,services and system's modules, different log file records different information.For example,some of the default system log file,records some specific modules。</note> ===== Description of log files under /var/log/asterisk ===== Firstly,you need to enable logging function of asterisk.remove the note(semicolon) in front of the "messages => notice,warning,error" and "full => notice,warning,error,debug,verbose,dtmf,fax" in the file of /etc/asterisk/logger.conf,as shown below: {{:en:faq:enable_asterisk_log01.png?700|}} Then,you can find serveral files named "full.xxxx" and "messages" under the direction of /var/log/asterisk.You can delete these files if you can ensure that no longer use them. <note warning>No matter enabling or removing log files,it will worked only execute the following command after you finished:<code> asterisk -rx "logger reload" </code> </note> ===== Description of log files under /opt/asterisk/scripts/astercc ===== 开启asterCC日志,将/etc/asterisk/logger.conf文件中[system]标签下的debug改为一个大于0的整数,例如:debug=2。当等于0时,表示不开启asterCC系统的日志。 开启日志后,在 /opt/asterisk/scripts/astercc 目录下会看到模块对应的 .log日志文件,如:astcc_dialer.log 是指预拨号模块的日志文件。 {{:zh:常见问题及解答:astercc日志01.png?700|}} ===== Description of log files under /tmp/astcceventslog ===== 通话事件的日志我们保存在 /tmp/astcceventslog 目录下,文件名格式为:eventsfile_年月日.log,系统默认保存最近5天的通话事件日志。如果确认不再使用的日志文件,可以手动进行删除。 {{:zh:常见问题及解答:通话事件日志01.png?650|}}