[Freeswitch-users] log file not being populated

Vallimamod Abdullah vma at vallimamod.org
Sat Apr 8 15:14:58 MSD 2017


Hi,

After looking back at my first reply, the <mappings> tag must be set after the <settings> under <profile> and not the top level one:

<profiles>
  <profile name="default">
    <settings>
      <param name="logfile" value="/usr/local/freeswitch/log/freeswitch.log"/>
      <param name="rollover" value="10485760"/>
      <param name="uuid" value="true" />
    </settings>
    <mappings>
      <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
    </mappings>
  </profile>
</profiles>

If still not working, check for the file permissions.
Also, when you reload the logfile module, do you get any warning or error in the console? You may need to set console loglevel to debug first.

Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
vma at sipsolutions.fr
.

> On 7 Apr 2017, at 15:53, David Villasmil <david.villasmil.work at gmail.com> wrote:
> 
> Thanks for your reply, but that didn't help at all...
>> 
> Regards,
> 
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
> 
> On Fri, Apr 7, 2017 at 12:11 PM, Vallimamod Abdullah <vma at vallimamod.org> wrote:
> Hi,
> 
> Your conf looks incomplete, the mappings are missing. Add the following after </settings>:
> 
> <mappings>
>   <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
> </mappings>
> 
> Then do "reload mod_logfile" in fs_cli.
> 
> Hope this helps.
> 
> Best Regards,
> --
> Vallimamod Abdullah
> SIP Solutions
> vma at sipsolutions.fr
> .
> 
> > On 7 Apr 2017, at 10:54, David Villasmil <david.villasmil.work at gmail.com> wrote:
> >
> > hello guys,
> >
> > my logfile.conf.xml is as follows:
> >
> > <configuration name="logfile.conf" description="File Logging">
> >         <settings>
> >                 <!-- true to auto rotate on HUP, false to open/close -->
> >                 <param name="rotate-on-hup" value="true"/>
> >         </settings>
> >         <profiles>
> >                 <profile name="default">
> >                         <settings>
> >                                 <!-- File to log to -->
> >                                 <param name="logfile" value="/usr/local/freeswitch/log/freeswitch.log"/>
> >                                 <!-- At this length in bytes rotate the log file (0 for never) -->
> >                                 <param name="rollover" value="10485760"/>
> >                                 <!-- Maximum number of log files to keep before wrapping -->
> >                                 <!-- If this parameter is enabled, the log filenames will not include a date stamp -->
> >                                 <!-- <param name="maximum-rotate" value="32"/> -->
> >                                 <!-- Uncomment to prefix all log lines by the session's uuid  -->
> >                                 <param name="uuid" value="true" />
> >                         </settings>
> >                 </profile>
> >         </profiles>
> > </configuration>
> >
> > the logfile _is_ being created but nothing is added to it... i wonder if this ever happened to anyone...
> >
> >
> >
> > Regards,
> >
> > David Villasmil
> > email: david.villasmil.work at gmail.com
> > phone: +34669448337
> > ᐧ
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list