#include <logger.h>

Public Member Functions | |
| Log (LogType type=LOG_NORMAL, const Anope::string &category="", const BotInfo *bi=NULL) | |
| Log (LogType type, CommandSource &source, Command *c, const ChannelInfo *ci=NULL) | |
| Log (const User *u, Channel *c, const Anope::string &category="") | |
| Log (const User *u, const Anope::string &category="", const BotInfo *bi=NULL) | |
| Log (Server *s, const Anope::string &category="", const BotInfo *bi=NULL) | |
| Log (const BotInfo *b, const Anope::string &category="") | |
| Log (Module *m, const Anope::string &category="") | |
| ~Log () | |
| Anope::string | BuildPrefix () const |
| template<typename T > | |
| Log & | operator<< (T val) |
Data Fields | |
| const BotInfo * | bi |
| Anope::string | nick |
| const User * | u |
| const NickCore * | nc |
| Command * | c |
| Channel * | chan |
| const ChannelInfo * | ci |
| Server * | s |
| Module * | m |
| LogType | type |
| Anope::string | category |
| std::list< Anope::string > | sources |
| std::stringstream | buf |
Definition at line 52 of file logger.h.
| Log::Log | ( | LogType | type = LOG_NORMAL, |
|
| const Anope::string & | category = "", |
|||
| const BotInfo * | bi = NULL | |||
| ) |
Definition at line 76 of file logger.cpp.
References bi, Config, Global, User::nick, and sources.
| Log::Log | ( | LogType | type, | |
| CommandSource & | source, | |||
| Command * | c, | |||
| const ChannelInfo * | ci = NULL | |||
| ) |
Definition at line 84 of file logger.cpp.
References bi, c, category, ci, Config, BotInfo::Find(), Anope::string::find(), Global, LOG_ADMIN, LOG_COMMAND, LOG_OVERRIDE, ChannelInfo::name, Service::name, User::nick, Anope::string::npos, sources, Anope::string::substr(), type, and u.
| Log::Log | ( | const User * | u, | |
| Channel * | c, | |||
| const Anope::string & | category = "" | |||
| ) |
Definition at line 108 of file logger.cpp.
References bi, chan, ChanServ, Config, Channel::name, User::nick, sources, and u.
| Log::Log | ( | const User * | u, | |
| const Anope::string & | category = "", |
|||
| const BotInfo * | bi = NULL | |||
| ) | [explicit] |
Definition at line 122 of file logger.cpp.
| Log::Log | ( | Server * | s, | |
| const Anope::string & | category = "", |
|||
| const BotInfo * | bi = NULL | |||
| ) | [explicit] |
Definition at line 134 of file logger.cpp.
References bi, Config, Server::GetName(), Global, User::nick, OperServ, s, and sources.
| Log::Log | ( | const BotInfo * | b, | |
| const Anope::string & | category = "" | |||
| ) | [explicit] |
Definition at line 148 of file logger.cpp.
References bi, Config, Global, User::nick, and sources.
| Log::Log | ( | Module * | m, | |
| const Anope::string & | category = "" | |||
| ) |
Definition at line 156 of file logger.cpp.
References m, Module::name, and sources.
| Log::~Log | ( | ) |
Definition at line 162 of file logger.cpp.
References buf, BuildPrefix(), Config, Anope::Debug, endl, FOREACH_MOD, GetTimeStamp(), I_OnLog, LOG_DEBUG, LOG_NORMAL, LOG_TERMINAL, ServerConfig::LogInfos, Anope::NoFork, LogInfo::ProcessMessage(), and type.
| Anope::string Log::BuildPrefix | ( | ) | const |
Definition at line 178 of file logger.cpp.
References c, category, chan, ci, NickCore::display, Anope::string::find(), Server::GetDescription(), User::GetMask(), Server::GetName(), LOG_ADMIN, LOG_CHANNEL, LOG_COMMAND, LOG_MODULE, LOG_OVERRIDE, LOG_SERVER, LOG_USER, m, Module::name, Channel::name, ChannelInfo::name, Service::name, nc, nick, Anope::string::npos, s, Anope::string::substr(), type, u, and Anope::string::upper().
Referenced by LogInfo::ProcessMessage(), and ~Log().
| Log& Log::operator<< | ( | T | val | ) | [inline] |
Definition at line 56 of file logger.h.
Referenced by Log(), and LogInfo::ProcessMessage().
| std::stringstream Log::buf |
Definition at line 77 of file logger.h.
Referenced by LogInfo::ProcessMessage(), and ~Log().
Definition at line 74 of file logger.h.
Referenced by BuildPrefix(), Log(), and LogInfo::ProcessMessage().
| const ChannelInfo* Log::ci |
Definition at line 68 of file logger.h.
Referenced by BuildPrefix(), and Log().
Definition at line 62 of file logger.h.
Referenced by BuildPrefix().
Definition at line 58 of file logger.h.
Referenced by BuildPrefix().
| std::list<Anope::string> Log::sources |
Definition at line 75 of file logger.h.
Referenced by Log(), and LogInfo::ProcessMessage().
Definition at line 73 of file logger.h.
Referenced by BuildPrefix(), Log(), LogInfo::ProcessMessage(), and ~Log().
1.7.1