ZCLibLog
载入中...
搜索中...
未找到
iostream.hpp
浏览该文件的文档.
1// Copyright 2026 CZF-H
2// Licensed under the Apache License, Version 2.0
3
4//
5// Created by wanjiangzhi on 2026/3/30.
6//
7
8#ifndef ZCLIBLOG_EXECUTORS_IOSTREAM_HPP
9#define ZCLIBLOG_EXECUTORS_IOSTREAM_HPP
10
11#include "basic_executor.hpp"
12#include <iostream>
13
14// NOLINTNEXTLINE
15namespace ZCLibLog {
16 namespace executors {
23 void do_execute(ELString msg, ELogLevel lv) override {
24 if (lv >= LogLevel::ERROR)
25 std::cerr << msg << std::endl;
26 else
27 std::cout << msg << std::endl;
28 }
29 };
30 }
31}
32
33#endif //ZCLIBLOG_EXECUTORS_IOSTREAM_HPP
ZCLibLog的命名空间
Definition android_log.hpp:16
执行器的基类抽象类
Definition logger_types.hpp:106
ELogLevel ELogLevel
简化写法
Definition logger_types.hpp:116
ELString ELString
简化写法
Definition logger_types.hpp:114
C++"iostream"标准输出执行器
Definition iostream.hpp:22
void do_execute(ELString msg, ELogLevel lv) override
自定义执行器需要重载的执行函数
Definition iostream.hpp:23