Bruce B
2011-Dec-30 23:11 UTC
[asterisk-users] High verbose set at console effects the logger file "Full" - Why is that?
Hi everyone, I am playing around with Asterisk 1.8.8.0 from Digium repository. This is all there is to my logger.conf file: *[general]* *dateformat=%F %T* * * *[logfiles]* *full => notice,warning,error,debug,verbose,dtmf,fax* * * However, when I do, "core set verbose 0" at CLI, Asterisk ceases to write to /var/log/asterisk/full file for some reason. When I type "core set verbose 9" at CLI then it starts writing to /var/log/asterisk/full. Is this the correct behaviour or am I missing a config setting? Of course I want the /var/log/asterisk/full file to always keep the logs regardless of what the verbosity at CLI level is. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111230/a9aa8581/attachment.htm>
Jim Dickenson
2011-Dec-30 23:19 UTC
[asterisk-users] High verbose set at console effects the logger file "Full" - Why is that?
If you want to stop stuff from going to the console you can use the command "logger mute" and console will not get output but log file will. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Dec 30, 2011, at 3:11 PM, Bruce B wrote:> Hi everyone, > > I am playing around with Asterisk 1.8.8.0 from Digium repository. This is all there is to my logger.conf file: > > [general] > dateformat=%F %T > > [logfiles] > full => notice,warning,error,debug,verbose,dtmf,fax > > However, when I do, "core set verbose 0" at CLI, Asterisk ceases to write to /var/log/asterisk/full file for some reason. When I type "core set verbose 9" at CLI then it starts writing to /var/log/asterisk/full. Is this the correct behaviour or am I missing a config setting? > > Of course I want the /var/log/asterisk/full file to always keep the logs regardless of what the verbosity at CLI level is. > > Thanks > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111230/26472c24/attachment.htm>
Bruce B
2011-Dec-30 23:24 UTC
[asterisk-users] High verbose set at console effects the logger file "Full" - Why is that?
Okay, but I thought that the line "console =>" is supposed to be for CLI and the line "Full =>" is supposed to be for the file /var/log/asterisk/full. Why would the "Full =>" be effected by "core set verbose 0"? Is this just bad assumption on the part of the developers? I would only assume that "core set verbose 0" should only effect what I see at CLI level and not at my my /var/log/asterisk/full log file. Am I missing something? Thanks for the feedback. On Fri, Dec 30, 2011 at 6:19 PM, Jim Dickenson <dickenson at cfmc.com> wrote:> If you want to stop stuff from going to the console you can use the > command "logger mute" and console will not get output but log file will. > -- > Jim Dickenson > mailto:dickenson at cfmc.com <dickenson at cfmc.com> > > CfMC > http://www.cfmc.com/ > > > > On Dec 30, 2011, at 3:11 PM, Bruce B wrote: > > Hi everyone, > > I am playing around with Asterisk 1.8.8.0 from Digium repository. This is > all there is to my logger.conf file: > > *[general]* > *dateformat=%F %T* > * > * > *[logfiles]* > *full => notice,warning,error,debug,verbose,dtmf,fax* > * > * > However, when I do, "core set verbose 0" at CLI, Asterisk ceases to write > to /var/log/asterisk/full file for some reason. When I type "core set > verbose 9" at CLI then it starts writing to /var/log/asterisk/full. Is this > the correct behaviour or am I missing a config setting? > > Of course I want the /var/log/asterisk/full file to always keep the logs > regardless of what the verbosity at CLI level is. > > Thanks > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111230/8d1d60dd/attachment.htm>
Jim Dickenson
2011-Dec-31 00:24 UTC
[asterisk-users] High verbose set at console effects the logger file "Full" - Why is that?
Yes, you are missing the fact that the verbose setting controls what level of output will be generated in the first place. You can raise and lower the amount of stuff logged/printed on CLI. The lines in logger.conf control what types of lines go to which place. One can set the verbose level as well as the debug level. These control how much log information is generated at all not where it is being written. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Dec 30, 2011, at 3:24 PM, Bruce B wrote:> Okay, but I thought that the line "console =>" is supposed to be for CLI and the line "Full =>" is supposed to be for the file /var/log/asterisk/full. > > Why would the "Full =>" be effected by "core set verbose 0"? Is this just bad assumption on the part of the developers? I would only assume that "core set verbose 0" should only effect what I see at CLI level and not at my my /var/log/asterisk/full log file. > > Am I missing something? > > Thanks for the feedback. > > On Fri, Dec 30, 2011 at 6:19 PM, Jim Dickenson <dickenson at cfmc.com> wrote: > If you want to stop stuff from going to the console you can use the command "logger mute" and console will not get output but log file will. > -- > Jim Dickenson > mailto:dickenson at cfmc.com > > CfMC > http://www.cfmc.com/ > > > > On Dec 30, 2011, at 3:11 PM, Bruce B wrote: > >> Hi everyone, >> >> I am playing around with Asterisk 1.8.8.0 from Digium repository. This is all there is to my logger.conf file: >> >> [general] >> dateformat=%F %T >> >> [logfiles] >> full => notice,warning,error,debug,verbose,dtmf,fax >> >> However, when I do, "core set verbose 0" at CLI, Asterisk ceases to write to /var/log/asterisk/full file for some reason. When I type "core set verbose 9" at CLI then it starts writing to /var/log/asterisk/full. Is this the correct behaviour or am I missing a config setting? >> >> Of course I want the /var/log/asterisk/full file to always keep the logs regardless of what the verbosity at CLI level is. >> >> Thanks >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111230/a5b07322/attachment.htm>
Bruce B
2012-Jan-01 00:37 UTC
[asterisk-users] High verbose set at console effects the logger file "Full" - Why is that?
On Sat, Dec 31, 2011 at 5:06 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>wrote:> On Fri, Dec 30, 2011 at 09:03:34PM -0500, Bruce B wrote: > > So, based on what you are saying if I issue the command "core set verbose > > 0" and then exit the system Fail2Ban will stop working for Asterisk (this > > is since Fail2ban works based on the log file entries). > > > > Can anyone else please confirm that as well. > > Though in trunk you can set different log levels to different files. > >Tzafrir, thanks for the feedback. Can you please elaborate on that. Is that something that is not effected by the CLI commands? Not sure which trunk you are pointing too. Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111231/32ee1379/attachment.htm>