Where does "show queue <queue_number>" information in CLI come from

Our helpdesk manager would like to be able to access more detailed information than just the summary information that is provided by "show queue <queue_number>"in the Asterisk CLI. Where is this information stored? How could we access it (either through the CLI/API or via a database connection)?

Thank you for your help,
Alton Pouncey

Check the queue_log.

http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ACD_id289009.html

Tables in memory. This is s developer question as you will need write C code to do this.