[Freeswitch-users] log file not being populated

David Villasmil david.villasmil.work at gmail.com
Sat Apr 8 15:24:54 MSD 2017


Hello

I replaced the logfile config file and everything came back up, I guess i
messed up somewhere :) so it might have been what you point out

Thanks for your help!
On Sat, Apr 8, 2017 at 1:15 PM Vallimamod Abdullah <vma at vallimamod.org>
wrote:

> 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
>
>
> _________________________________________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170408/3746cabb/attachment-0001.html 


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