11 #include <netinet/in.h>
12 #include <arpa/inet.h>
13 #include "base/sandesh/version_types.h"
15 #include "rapidjson/document.h"
16 #include "rapidjson/writer.h"
17 #include "rapidjson/stringbuffer.h"
29 size_t pos = filename.find_last_of(
'/');
30 if (pos != string::npos) {
31 return filename.substr((pos+1));
static void LogVersionInfo(const std::string str, Category::type categ)
static time_t set_startup_time_secs()
static const std::map< BuildModule, std::string > BuildModuleNames
static time_t startup_time_secs_
static std::string BaseName(std::string filename)
static std::map< BuildModule, std::string > MapInit()
static time_t GetUpTimeSeconds()
SandeshTraceBufferPtr VersionTraceBuf(SandeshTraceBufferCreate(VERSION_TRACE_BUF, 500))
#define VERSION_LOG(obj, categ,...)
#define VERSION_TRACE(obj,...)
#define VERSION_TRACE_BUF
boost::shared_ptr< TraceBuffer< SandeshTrace > > SandeshTraceBufferPtr
SandeshTraceBufferPtr SandeshTraceBufferCreate(const std::string &buf_name, size_t buf_size, bool trace_enable=true)
static time_t UTCTimestamp()