log file not being populated
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@gmail.com phone: +34669448337 ᐧ
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@sipsolutions.fr .
On 7 Apr 2017, at 10:54, David Villasmil <david.villasmil.work@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@gmail.com phone: +34669448337 ᐧ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks for your reply, but that didn't help at all... ᐧ Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Fri, Apr 7, 2017 at 12:11 PM, Vallimamod Abdullah <vma@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@sipsolutions.fr .
On 7 Apr 2017, at 10:54, David Villasmil <david.villasmil.work@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@gmail.com phone: +34669448337 ᐧ ____________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@sipsolutions.fr .
On 7 Apr 2017, at 15:53, David Villasmil <david.villasmil.work@gmail.com> wrote:
Thanks for your reply, but that didn't help at all... ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Fri, Apr 7, 2017 at 12:11 PM, Vallimamod Abdullah <vma@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@sipsolutions.fr .
On 7 Apr 2017, at 10:54, David Villasmil <david.villasmil.work@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@gmail.com phone: +34669448337 ᐧ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@sipsolutions.fr .
On 7 Apr 2017, at 15:53, David Villasmil <david.villasmil.work@gmail.com> wrote:
Thanks for your reply, but that didn't help at all... ᐧ
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Fri, Apr 7, 2017 at 12:11 PM, Vallimamod Abdullah <vma@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@sipsolutions.fr .
On 7 Apr 2017, at 10:54, David Villasmil < david.villasmil.work@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@gmail.com phone: +34669448337 ᐧ
Professional FreeSWITCH Consulting Services: consulting@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
David Villasmil
-
Vallimamod Abdullah