I apologize in advance if this is a dumb question, but I have looked everywhere and can’t figure out how to see the log level for my freepbx.log. I’m trying to turn off INFO level logging.
I looked at Settings/Asterisk Logfile Settings and I see “full” and “console”. Guessing freepbx.log is the console log? The only category that has multiple levels is Verbose, but the description for Verbose doesn’t sound like this is what I’m looking for.
Am I looking in the right place, or is this somewhere else?
Thanks for any help pointing me in the right direction.
You can add as many log files as you want with the level of detail appropriate, full is the standard one and I suggest you don’t mess with it, console is what you see at the asterisk CLI, If the verbosity is too much for you, decrease the verbosity but you can do that on the fly with core set verbose N wher N is usefully between a minimum of 2 and a maximum of 9. core set verbose 3 will set you back to the default. Further cre set debug 0-9 will also change the debug logging on the console.
ok, so I don’t think either of these is what I’m wanting. I’m wanting to turn off these INFO level log messages:
[2021-May-07 20:27:03] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: Sangoma Documentation
[2021-May-07 20:27:03] [freepbx.INFO]: Deprecated way to add Console commands for module pm2, adding console commands this way can have negative performance impacts. Please use module.xml. See: Sangoma Documentation
[2021-May-07 20:28:02] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: Sangoma Documentation
[2021-May-07 20:28:02] [freepbx.INFO]: Deprecated way to add Console commands for module pm2, adding console commands this way can have negative performance impacts. Please use module.xml. See: Sangoma Documentation
I don’t think the warnings are anything I can fix. From what I’ve read, these are for developers, rather than end users. They use up space, and obscure any real issue I might be able to do something about.
No issue right now. My log is currently 1730 lines long, and 1714 are these INFO messages, so the 99% obscures the other 1%. I can easily grep out the INFO entries, but I don’t normally look at this log. But since the INFO level messages aren’t meaningful to me, was hoping I could eliminate them.
Was going to look at “full” log for a custom extension issue (which I figured out), and noticed freepbx.log was sort of large - almost as big as “full” log, so thought there may be a problem (which I guess technically there is). Was hoping eliminating those message would make it more apparent next time I’m checking logs in /var/log/asterisk (i.e. more apparent based on size and last-modified time) if there was something more concerning going on.
Well, technically log size is based on logrotate settings. But actually more voluminous than my full log. freepbx.log is rotating every 3 days. Full is rotating every 30-35 days.