HOWTO Logging Asterisk Activity Into Log File

From Bicom Systems Wiki

To make asterisk log the activity to a log file:

 asterisk -rx 'stop now
 asterisk -vvvvvvvvv -g -ddddddddddd >/tmp/log 2>&1 &