santazhang / simple-rpc

Simple RPC in C++, with Python binding
http://www.yzhang.net/simple-rpc/
BSD 3-Clause "New" or "Revised" License
27 stars 6 forks source link

Use macros to capture file, line number when logging. #4

Closed rjpower closed 11 years ago

rjpower commented 11 years ago

Yang,

This just switches the Logger to use some macros which give the file and line number when logging. Not as pretty, but it's nice to know where the log statements come from sometimes.

I didn't change the log service. It just uses a dummy "remote",-1 location when it writes log messages.

santazhang commented 11 years ago

Thanks, Russell :) This will be very useful.