Is there anyway to get customized log in asterisk by using agi, log file with csv format will contains only those informations :
-date of the call -Caller id -Called number
Use the asterisk Call Details Recording (CDR).
You should use cdr_custom.conf to generate a custom CDR for every finished call, this file defines what exactly gets logged in this CDR line.