This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:faq:the_logs_of_system-related_about_astercc [2015/08/07 08:40] liuxl |
en:faq:the_logs_of_system-related_about_astercc [2017/12/12 03:05] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <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> | <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 ===== | + | ===== Description of log files under /var/log/asterisk directory ===== |
| 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: | 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: | ||
| Line 14: | Line 14: | ||
| - | ===== Description of log files under /opt/asterisk/scripts/astercc ===== | + | ===== Description of log files under /opt/asterisk/scripts/astercc directory ===== |
| How to enable the logging of asterCC ? You should update the value of field named "debug" in the file of /etc/asterisk/logger.conf,it belongs to [system],only "debug" is a integer that greater than 0,the logging of asterCC modules can be worked,for example:debug=2.It measns the logging function is disabled when debug=0. | How to enable the logging of asterCC ? You should update the value of field named "debug" in the file of /etc/asterisk/logger.conf,it belongs to [system],only "debug" is a integer that greater than 0,the logging of asterCC modules can be worked,for example:debug=2.It measns the logging function is disabled when debug=0. | ||
| - | After enabling the setting in /opt/asterisk/scripts/astercc,you will see several log files corresponding module,and the suffix of names are ".log",such as:astcc_dialer.log,it is the log of pre-dial module. | + | After enabling the setting under /opt/asterisk/scripts/astercc directory,you will see several log files corresponding module,and the suffix of names are ".log",such as:astcc_dialer.log,it is the log of pre-dial module. |
| + | {{:en:faq:astercc_log01.png?700|}} | ||
| - | 开启日志后,在 /opt/asterisk/scripts/astercc 目录下会看到模块对应的 .log日志文件,如:astcc_dialer.log 是指预拨号模块的日志文件。 | ||
| - | {{:zh:常见问题及解答:astercc日志01.png?700|}} | + | ===== Description of log files under /tmp/astcceventslog directory ===== |
| + | The records of calling events logged under /tmp/astcceventslog directory,the naming rule is:eventsfile_yearmonthday.log,the logs can be saved for 5 days recently by default.Generally speaking,don't delete the call event logs of last 5 days,you must preserve the log files today. | ||
| - | + | {{:en:faq:call_event_log01.png?650|}} | |
| - | ===== Description of log files under /tmp/astcceventslog ===== | + | |
| - | + | ||
| - | 通话事件的日志我们保存在 /tmp/astcceventslog 目录下,文件名格式为:eventsfile_年月日.log,系统默认保存最近5天的通话事件日志。如果确认不再使用的日志文件,可以手动进行删除。 | + | |
| - | + | ||
| - | {{:zh:常见问题及解答:通话事件日志01.png?650|}} | + | |