Public Member Functions | Data Fields

Log Class Reference

#include <logger.h>

Collaboration diagram for Log:
Collaboration graph
[legend]

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 >
Logoperator<< (T val)

Data Fields

const BotInfobi
Anope::string nick
const Useru
const NickCorenc
Commandc
Channelchan
const ChannelInfoci
Servers
Modulem
LogType type
Anope::string category
std::list< Anope::stringsources
std::stringstream buf

Detailed Description

Definition at line 52 of file logger.h.


Constructor & Destructor Documentation

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 
)
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.

References bi, Config, Global, User::nick, sources, and u.

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 (  ) 

Member Function Documentation

Anope::string Log::BuildPrefix (  )  const
template<typename T >
Log& Log::operator<< ( val  )  [inline]

Definition at line 101 of file logger.h.


Field Documentation

const BotInfo* Log::bi

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 64 of file logger.h.

Referenced by BuildPrefix(), and Log().

Definition at line 74 of file logger.h.

Referenced by BuildPrefix(), Log(), and LogInfo::ProcessMessage().

Definition at line 66 of file logger.h.

Referenced by BuildPrefix(), and Log().

Definition at line 68 of file logger.h.

Referenced by BuildPrefix(), and Log().

Definition at line 72 of file logger.h.

Referenced by BuildPrefix(), and Log().

const NickCore* Log::nc

Definition at line 62 of file logger.h.

Referenced by BuildPrefix().

Definition at line 58 of file logger.h.

Referenced by BuildPrefix().

Definition at line 70 of file logger.h.

Referenced by BuildPrefix(), and Log().

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().

const User* Log::u

Definition at line 60 of file logger.h.

Referenced by BuildPrefix(), and Log().


The documentation for this class was generated from the following files: