Asterisk-logger

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

Asterisk logger 명령어 내용 정리.

Module

logger 모듈 시작/재시작 명령어.

pluto*CLI> module reload logger 

help

logger 명령어 help.

pluto*CLI> help logger
logger add channel             -- Adds a new logging channel
logger mute                    -- Toggle logging output to a console
logger reload                  -- Reopens the log files
logger remove channel          -- Removes a logging channel
logger rotate                  -- Rotates and reopens the log files
logger set level {DEBUG|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} -- Enables/Disables a specific logging level for this console
logger show channels           -- List configured log channels

show

channels

현재 설정된 로그 파일 이름과 각각의 로그 파일에 설정된 로그레벨 등의 정보를 보여준다.

pluto*CLI> help logger show
logger show channels           -- List configured log channels

pluto*CLI> logger show channels 
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE DTMF FAX SECURITY 
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR 
                                    Console  Enabled    - NOTICE WARNING ERROR