[asterisk-dev] [Code Review]: log Asterisk Version number, Build etc into log file

Alec Davis reviewboard at asterisk.org
Sun Sep 4 15:39:46 CDT 2011



> On Sept. 3, 2011, 10:08 a.m., lathama wrote:
> > I like it.  Appears almost too simple for a review.  I would add or make an option to add this to the debug or other logs.

With that thought, I've had a quick look at logger.c with the intention of putting the Version+Build etc on every logger file as it's opened.

Ideally then when 'logger rotate' is issued the new files will also have the version number as the first line.


- Alec


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1409/#review4211
-----------------------------------------------------------


On Sept. 2, 2011, 11:57 p.m., Alec Davis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1409/
> -----------------------------------------------------------
> 
> (Updated Sept. 2, 2011, 11:57 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> When the question is asked what was the last version that worked? You'd of thought looking through the logs it would be reported.
> 
> 
> Diffs
> -----
> 
>   trunk/main/loader.c 333893 
> 
> Diff: https://reviewboard.asterisk.org/r/1409/diff
> 
> 
> Testing
> -------
> 
> asterix:/var/log/asterisk# head messages
> [2011-09-03 16:41:56.778997] NOTICE[17261] loader.c: Asterisk SVN-trunk-r333838M built by root @ asterix on a i686 running Linux on 2011-05-27 11:52:02 UTC
> [2011-09-03 16:41:56.779446] NOTICE[17261] loader.c: 1 modules will be loaded.
> 
> 
> Thanks,
> 
> Alec
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110904/bd199ea6/attachment.htm>


More information about the asterisk-dev mailing list