# Asterisk Logger not working

**URL:** <https://community.asterisk.org/t/asterisk-logger-not-working/88195>\
**Category:** Asterisk Support\
**Created:** [April 6, 2021, 6:12am UTC](https://community.asterisk.org/t/asterisk-logger-not-working/88195 "2021-04-06T06:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijo.jose](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vijo.jose](https://community.asterisk.org/u/vijo.jose)\
**Post date:** [April 6, 2021, 6:12am UTC](https://community.asterisk.org/t/asterisk-logger-not-working/88195/1 "2021-04-06T06:12:21Z")

</div>

Hai Everyone.

I Have an asterisk server installed with version Asterisk-16.14.0 on Centos 7.8 OS. Am facing some issue with logging the logs on this server.

I have configured logger. conf to log the logs as below.

![image](https://global.discourse-cdn.com/asterisk/original/2X/4/409cd27f640645b0e9e8c0a57f85aef271e8684f.png)

And also able to see from the console as below.

 ![image](https://global.discourse-cdn.com/asterisk/original/2X/e/ea0c6f56c9f5ec1d68e46e0994fa8872c4a2129f.png)

But when am checking the logs on the path it’s not logging I have tried the logger reload and logger rotate as well but still, the logs are not getting captured.

But at the same time when open console asterisk -vvvvvvvvvvvvr  
am able to see the logs and at the same time the logs are also started to generate to the path which is given on logger.conf and when I exit from the asterisk console again the logger stop logging.

---

<div class="post-metadata">

**Author:** ![vijo.jose](https://avatars.discourse-cdn.com/v4/letter/v/9fc29f/32.png) [@vijo.jose](https://community.asterisk.org/u/vijo.jose)\
**Post date:** [April 6, 2021, 6:38am UTC](https://community.asterisk.org/t/asterisk-logger-not-working/88195/2 "2021-04-06T06:38:47Z")

</div>

After Referring some Internet. I have modified the logger.conf like below.

![image](https://global.discourse-cdn.com/asterisk/original/2X/1/1bff3683df1de7527384ea4a10d4e33ce1676561.png)

And Now it started logging . But unable to understand my other server working without adding verbose level and able to log - only this specific asterisk instance i have this issue.

is there any thing special on asterisk 16 version or we do we need to set verbose level anywhere else ?

---

<div class="post-metadata">

**Author:** ![kharwell](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/kharwell/32/1924_2.png) [@kharwell](https://community.asterisk.org/u/kharwell)\
**Post date:** [April 7, 2021, 10:49pm UTC](https://community.asterisk.org/t/asterisk-logger-not-working/88195/3 "2021-04-07T22:49:49Z")

</div>

> [@vijo.jose](#):
>
> But at the same time when open console asterisk -vvvvvvvvvvvvr  
> am able to see the logs and at the same time the logs are also started to generate to the path which is given on logger.conf and when I exit from the asterisk console again the logger stop logging.

I believe this is due to the following (from [logger.conf.sample](https://github.com/asterisk/asterisk/blob/master/configs/samples/logger.conf.sample#L134)):

```
; Verbose takes an optional argument, in the form of an integer level. The
; verbose level can be set per logfile. Verbose messages with higher levels
; will not be logged to the file. If the verbose level is not specified, it
; will log verbose messages following the current level of the root console.

```

When the verbose level is not specified it’ll only start logging verbose messages according to the level set in the root console. So when opened the console with “-vvvv …” it started logging and then stopped when you exited.

> [@vijo.jose](#):
>
> is there any thing special on asterisk 16 version or we do we need to set verbose level anywhere else ?

Try checking in your [asterisk.conf](https://github.com/asterisk/asterisk/blob/master/configs/samples/asterisk.conf.sample#L16) file and see if the verbose level is set there. If set say to “3” this would be the equivalent of adding “-vvv” when starting a console.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 7, 2021, 10:50pm UTC](https://community.asterisk.org/t/asterisk-logger-not-working/88195/4 "2021-05-07T22:50:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
