aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
ModeNameSize
-rw-r--r--CMakeLists.txt639logplain
-rw-r--r--s_async.cpp7288logplain
-rw-r--r--s_async.h4014logplain
-rw-r--r--s_base.cpp9549logplain
-rw-r--r--s_base.h3872logplain
-rw-r--r--s_client.cpp5922logplain
-rw-r--r--s_client.h1903logplain
-rw-r--r--s_entity.cpp8714logplain
-rw-r--r--s_entity.h1561logplain
-rw-r--r--s_env.cpp7320logplain
-rw-r--r--s_env.h1461logplain
-rw-r--r--s_internal.h2896logplain
-rw-r--r--s_inventory.cpp7737logplain
-rw-r--r--s_inventory.h2278logplain
-rw-r--r--s_item.cpp7077logplain
-rw-r--r--s_item.h1930logplain
-rw-r--r--s_mainmenu.cpp2660logplain
-rw-r--r--s_mainmenu.h1395logplain
-rw-r--r--s_node.cpp7924logplain
-rw-r--r--s_node.h1987logplain
-rw-r--r--s_nodemeta.cpp8065logplain
-rw-r--r--s_nodemeta.h2181logplain
-rw-r--r--s_player.cpp5439logplain
-rw-r--r--s_player.h1787logplain
-rw-r--r--s_security.cpp18717logplain
-rw-r--r--s_security.h2769logplain
-rw-r--r--s_server.cpp4532logplain
-rw-r--r--s_server.h1504logplain
/span>::string &text) { log_threadnamemutex.Lock(); std::string threadname = "(unknown thread)"; std::map<threadid_t, std::string>::const_iterator i; i = log_threadnames.find(get_current_thread_id()); if(i != log_threadnames.end()) threadname = i->second; std::string levelname = get_lev_string(lev); std::ostringstream os(std::ios_base::binary); os<<getTimestamp()<<": "<<levelname<<"["<<threadname<<"]: "<<text; for(std::list<ILogOutput*>::iterator i = log_outputs[lev].begin(); i != log_outputs[lev].end(); i++){ ILogOutput *out = *i; out->printLog(os.str()); out->printLog(os.str(), lev); out->printLog(lev, text); } log_threadnamemutex.Unlock(); } class Logbuf : public std::streambuf { public: Logbuf(enum LogMessageLevel lev): m_lev(lev) { } ~Logbuf() { } int overflow(int c) { bufchar(c); return c; } std::streamsize xsputn(const char *s, std::streamsize n) { for(int i=0; i<n; i++)