libmoost
|
00001 /* vim:set ts=3 sw=3 sts=3 et: */ 00043 #ifndef MOOST_LOGGING_THRIFT_HPP__ 00044 #define MOOST_LOGGING_THRIFT_HPP__ 00045 00046 #include <thrift/Thrift.h> 00047 00048 #include "detail/thrift.hpp" 00049 00050 namespace moost { namespace logging { 00051 00052 inline void enable_thrift_logger(void (*function)(const char *) = &detail::warn_logger) 00053 { 00054 ::apache::thrift::GlobalOutput.setOutputFunction(function); 00055 } 00056 00057 }} 00058 00059 #endif