|
Console Library 8.0.0
A header-only library that makes C++ simple
|
提供带颜色和级别的日志记录功能。 More...
#include <cstdint>#include <sstream>#include "../core/csexc.h"#include "../io/colorful.h"#include "../io/output.h"#include "../text/strpp.h"#include "./time.h"Go to the source code of this file.
Classes | |
| class | console::BasicLogging< CharT, Traits > |
| 日志记录器,支持多级别、颜色输出和自动时间戳。 More... | |
Namespaces | |
| namespace | console |
| 本库所有组件所在的顶层命名空间。 | |
Typedefs | |
| using | console::Logging = BasicLogging<char> |
| BasicLogging<char> 的类型别名。 | |
| using | console::WLogging = BasicLogging<wchar_t> |
| BasicLogging<wchar_t> 的类型别名。 | |
Functions | |
| BasicLogging & | console::get_logger () |
| 内部单例(char)。 | |
Variables | |
| static BasicLogging & | console::logger = get_logger() |
| 全局默认 logger 实例,启用颜色,级别 INFO。 | |
提供带颜色和级别的日志记录功能。
包含 Logging 类,支持 DEBUG、INFO、WARN、ERROR、FATAL 五个级别, 可控制输出级别、颜色开关,并自动附加时间戳。全局默认 logger 实例可直接使用。