libmoost
/home/mhx/git/github/libmoost/src/logging/thrift.cpp
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00028 #include "../../include/moost/logging/detail/thrift.hpp"
00029 #include "../../include/moost/logging/logger.hpp"
00030 
00031 namespace moost { namespace logging { namespace detail {
00032 
00033 namespace {
00034 
00035    const char *cname = "thrift";
00036 
00037 }
00038 
00039 void trace_logger(const char *msg)
00040 {
00041    MLOG_NAMED_TRACE(cname, msg);
00042 }
00043 
00044 void debug_logger(const char *msg)
00045 {
00046    MLOG_NAMED_DEBUG(cname, msg);
00047 }
00048 
00049 void info_logger(const char *msg)
00050 {
00051    MLOG_NAMED_INFO(cname, msg);
00052 }
00053 
00054 void warn_logger(const char *msg)
00055 {
00056    MLOG_NAMED_WARN(cname, msg);
00057 }
00058 
00059 void error_logger(const char *msg)
00060 {
00061    MLOG_NAMED_ERROR(cname, msg);
00062 }
00063 
00064 }}}