Make Phalcon\Logger\Adapter::commit() clear the queue

Fix #1742
Test case for #1742
Update CHANGELOG
Merge pull request #1748 from sjinks/issue-1742

Make Phalcon\Logger\Adapter::commit() clear the queue