log commands using ap to its own stats