|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
日志记录器。 更多...
#include <Debug.h>
Public 类型 | |
| using | Level = Descriptions::RecordLevel |
| using | Filter = std::function< bool(Level, Logger &)> |
| using | Sender = std::function< void(Level, Logger &, const char *)> |
Public 成员函数 | |
| DefGetter (const ynothrow, Sender, Sender, sender) void SetFilter(Filter) | |
| 设置过滤器。 更多... | |
| void | SetWriter (Sender) |
| 设置发送器。 更多... | |
静态 Public 成员函数 | |
| static bool | DefaultFilter (Level, Logger &) ynothrow |
| 默认过滤:仅允许等级不大于阈值的日志被记录。 更多... | |
| static void | DefaultSendLog (Level, Logger &, const char *) ynothrowv |
| 默认发送器:使用 stderr 输出。 更多... | |
Public 属性 | |
| Level | FilterLevel = Descriptions::Informative |
Private 属性 | |
| Filter | filter {DefaultFilter} |
| Sender | sender {FetchDefaultSender()} |
| str const std::exception & | ynothrow |
| void | DoLog (Level, const char *) |
| 转发等级和日志至发送器。 更多... | |
| PDefH (void, DoLog, Level lv, const std::string &str) ImplRet(DoLog(lv | |
| str | c_str ())) void DoLogException(Level level |
| 转发等级和异常对象至发送器。 更多... | |
| template<typename _fCaller , typename... _tParams> | |
| void | Log (Level level, _fCaller &&f, _tParams &&...args) |
| static Sender | FetchDefaultSender (const std::string &="YFramework") |
| 取新建的平台相关的默认发送:按指定的标签取平台相关实现。 更多... | |
| using platform::Logger::Filter = std::function<bool(Level, Logger&)> |
| using platform::Logger::Sender = std::function<void(Level, Logger&, const char*)> |
| str platform::Logger::c_str | ( | ) |
转发等级和异常对象至发送器。
| void platform::Logger::DoLog | ( | Level | level, |
| const char * | str | ||
| ) |
|
static |
|
inline |
|
private |
| Level platform::Logger::FilterLevel = Descriptions::Informative |
|
private |