No logging in CLI (2.9.0 rc1.5)

Hi.
Please help me to enable logging in CLI (Asterisk 1.8.3.3 / FreePBX 2.9.0 rc1.5).
logger.conf:
[general]
#include logger_general_custom.conf

logger_general_custom.conf:
console => notice,warning,error,debug

asterisk -rvvvvvvvv
Verbosity was 3 and is now 8
looxCLI> core set debug 5
Core debug was 0 and is now 5
loox
CLI>

no emotions. silence.
btw 21 sip peers [Monitored: 12 online, 8 offline Unmonitored: 1 online, 0 offline]

no information in CLI. What is wrong?

Thanks.

I had the same problem.

i solved it by inserting:

console => notice,warning,error,debug
messages => notice,warning,error

in logger_logfiles_custom.conf and not in logger_general_custom.conf

sorry for my english

Maurizio

Did you change anything when you ran ‘make menuselect’ ? The longer is setup by default.

You also should look at the /var/log/asterisk/full when you start Asterisk and see if any logging errors show up.

Not sure why the sarcasm, this is not a FreePBX issue. Just trying to get you pointed in the right direction.

Did you change anything when you ran ‘make menuselect’ ? The longer is setup by default.
Yes, I added MySQL features for CDR viewing.

You also should look at the /var/log/asterisk/full when you start Asterisk and see if any logging errors show up.
Do You really use * 2.9?
See “Advanced Settings”, now logs are in /tmp/ by default, may be I am wrong, so correct me, please.

BTW. Sorry for my English, hope You understand me right way.

Thank You anyway.

The log you refer to in /tmp is the FreePBX log and has nothing to the Asterisk log.

Yes, I am familiar with 2.9

The FreePBX log is for trouble shooting purposes. It’s mainly used by the developers.

This is my logger.conf:

[root@skyPBXhome asterisk]# cat logger.conf
;
; Logging Configuration
;
; In this file, you configure logging to files or to
; the syslog system.
;
; For each file, specify what to log.
;
; For console logging, you set options at start of
; Asterisk with -v for verbose and -d for debug
; See 'asterisk -h' for more information.
;
; Directory for log files is configures in asterisk.conf
; option astlogdir
;
[logfiles]
;
; Format is "filename" and then "levels" of debugging to be included:
;    debug
;    notice
;    warning
;    error
;    verbose
;
; Special filename "console" represents the system console
;
;debug => debug
;console => notice,warning,error
;console => notice,warning,error,debug
;messages => notice,warning,error
full => notice,warning,error,debug,verbose

;syslog keyword : This special keyword logs to syslog facility
;
;syslog.local0 => notice,warning,error
;
[root@skyPBXhome asterisk]# cd /etc
[root@skyPBXhome etc]# cd asterisk
[root@skyPBXhome asterisk]# cat logger.conf
;
; Logging Configuration
;
; In this file, you configure logging to files or to
; the syslog system.
;
; For each file, specify what to log.
;
; For console logging, you set options at start of
; Asterisk with -v for verbose and -d for debug
; See 'asterisk -h' for more information.
;
; Directory for log files is configures in asterisk.conf
; option astlogdir
;
[logfiles]
;
; Format is "filename" and then "levels" of debugging to be included:
;    debug
;    notice
;    warning
;    error
;    verbose
;
; Special filename "console" represents the system console
;
;debug => debug
;console => notice,warning,error
;console => notice,warning,error,debug
;messages => notice,warning,error
full => notice,warning,error,debug,verbose

;syslog keyword : This special keyword logs to syslog facility
;
;syslog.local0 => notice,warning,error
;
[root@skyPBXhome asterisk]#

Asterisk log information is in asterisk.conf, here is the relevant line from my config on a lab server:

[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk

[options]
transmit_silence_during_record = yes
; nocolor = yes

Thnxx for reply.
I’m slightly familiar with 2.9, but less than 2.8.
I know about asterisk and FreePBX logs, but it seems that in 2.9 logger.conf is generated by FreePBX:
cat /etc/asterisk/logger.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
; This file is part of FreePBX.

[general]
#include logger_general_additional.conf
#include logger_general_custom.conf

So, while the logger_general_custom.conf is included, i thought that my info there was included too:
cat /etc/asterisk/logger_general_custom.conf
;debug => debug
;console => notice,warning,error
console => notice,warning,error,debug
messages => notice,warning,error
;full => notice,warning,error,debug,verbose,dtmf,fax

But I don’t see anything neither in the log directory nor in CLI, so I think that the Mikael Carlsson is right: You have either not enabled the logging function in make menuselect or the module is not loaded for some reason.

The remain question is how to check that issues.

asterisk -rvvvvvvvv

The v’s each represent a place in an 8 bit word for log level.

have You read my first post?

asterisk -rvvvvvvvv
Verbosity was 3 and is now 8
looxCLI> core set debug 5
Core debug was 0 and is now 5
loox
CLI>

no emotions. silence.

Have You any advices to solve the problem?

One way to get the logging to “stick” is to edit the command safe_asterisk uses to start asterisk to include all the v’s that you want.

You have either not enabled the logging function in make menuselect or the module is not loaded for some reason.

wow. this is the first useful answer.
please tell me how to check both assumptions?

You need to configure your logger.conf however I thought the -v options overrides the logger.conf console setting.

This is more an Asterisk than FreePBX question.

serious?

You need to configure your logger.conf

;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;

and be kind, do explain about -v option, i didn’t understand.

thank you.

That is an Asterisk feature and has nothing to do with FreePBX.

How did you install Asterisk?

Also post output of show ‘logger show channels’

Installed by downloading from asterisk site
./configure, make menuselect, make, make install
all things are ok, but logging doesn’t work.

loox*CLI> logger show channels
Channel Type Status Configuration


loox*CLI>