![]() |
TrinityCore
|
#include <Log.h>
Public Member Functions | |
| void | Initialize (boost::asio::io_service *ioService) |
| void | SetSynchronous () |
| void | LoadFromConfig () |
| void | Close () |
| bool | ShouldLog (std::string const &type, LogLevel level) const |
| bool | SetLogLevel (std::string const &name, char const *level, bool isLogger=true) |
| template<typename Format , typename... Args> | |
| void | outMessage (std::string const &filter, LogLevel const level, Format &&fmt, Args &&...args) |
| template<typename Format , typename... Args> | |
| void | outCommand (uint32 account, Format &&fmt, Args &&...args) |
| void | outCharDump (char const *str, uint32 account_id, uint64 guid, char const *name) |
| void | SetRealmId (uint32 id) |
| template<class AppenderImpl > | |
| void | RegisterAppender () |
| std::string const & | GetLogsDir () const |
| std::string const & | GetLogsTimestamp () const |
Static Public Member Functions | |
| static Log * | instance () |
Private Types | |
| typedef std::unordered_map < std::string, Logger > | LoggerMap |
Private Member Functions | |
| Log () | |
| ~Log () | |
| void | write (std::unique_ptr< LogMessage > &&msg) const |
| Logger const * | GetLoggerByType (std::string const &type) const |
| Appender * | GetAppenderByName (std::string const &name) |
| uint8 | NextAppenderId () |
| void | CreateAppenderFromConfig (std::string const &name) |
| void | CreateLoggerFromConfig (std::string const &name) |
| void | ReadAppendersFromConfig () |
| void | ReadLoggersFromConfig () |
Static Private Member Functions | |
| static std::string | GetTimestampStr () |
Private Attributes | |
| AppenderCreatorMap | appenderFactory |
| AppenderMap | appenders |
| LoggerMap | loggers |
| uint8 | AppenderId |
| LogLevel | lowestLogLevel |
| std::string | m_logsDir |
| std::string | m_logsTimestamp |
| boost::asio::io_service * | _ioService |
| boost::asio::strand * | _strand |
|
private |
|
private |
Here is the call graph for this function:
|
private |
Here is the call graph for this function:| void Log::Close | ( | ) |
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
staticprivate |
Here is the call graph for this function:
Here is the caller graph for this function:| void Log::Initialize | ( | boost::asio::io_service * | ioService | ) |
Here is the call graph for this function:
|
static |
| void Log::LoadFromConfig | ( | ) |
|
private |
Here is the caller graph for this function:
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:| void Log::SetRealmId | ( | uint32 | id | ) |
| void Log::SetSynchronous | ( | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8