[asterisk-users] Asterisk Message Logs

Anthony Francis anthonyf at rockynet.com
Thu Aug 23 13:43:15 CDT 2007


The problem with any of these choices is that they do not address 
logfile rotation.

Try this:

http://cr.yp.to/daemontools.html

Ron Joffe wrote:
> On Thursday 23 August 2007 14:00, Tzafrir Cohen wrote:
>   
>>> I utilize this command:
>>>
>>> nohup script -f -c "asterisk -vvvTn" /tmp/asterisk.log &
>>>
>>> To start up my apps. This will log everything to a log file.
>>>       
>> Why nohup? And if you have nohup, why script?
>>
>> It will log everything until the cotrolling terminal is lost, right? I
>> think what you're actually looking for is screen.
>>
>>
>> If you want asterisk daemonized but still want it verbose, use -F
>>     
>
> I call asterisk startup from a shell script. "nohup" will guarantee that the 
> process will not die if the calling process (whatever started the shell 
> script) dies.
>
> script is what I use to make sure that everything that would otherwise go to 
> the asterisk cli output makes it into that file. We spawn our own extensions 
> from asterisk which the asterisk logging facility does not capture. This way 
> we get everything that would be seen on the cli. I'm not looking for screen 
> functionality.
>
> -F is not an option on my version of asterisk.
>
> Ron
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
voip at rockynet.com




More information about the asterisk-users mailing list