replaced log_queue array with CBuffer

I also made the size of the CBuffer configurable with a default of 10 mesages, and I made the retry interval configurable.