| 23 | |
| 24 | |
| 25 | int main(int argc, char ** argv) { |
| 26 | comm::LogFunc log_func; |
| 27 | plugin::LoggerGoogle::GetLogger("test_producer", "/tmp/phxqueue/log", 3, log_func); |
| 28 | |
| 29 | producer::ProducerOption opt; |
| 30 | opt.log_func = log_func; |
| 31 | |
| 32 | test::SimpleProducer producer(opt); |
| 33 | producer.Init(); |
| 34 | producer.Enqueue(1000, 123, 1, "buffer", 1); |
| 35 | |
| 36 | return 0; |
| 37 | } |
| 38 |