ZCLibLog
载入中...
搜索中...
未找到
print.hpp
浏览该文件的文档.
1// Copyright 2026 CZF-H
2// Licensed under the Apache License, Version 2.0
3
4//
5// Created by wanjiangzhi on 2026/4/10.
6//
7
8#ifndef ZCLIBLOG_EXECUTORS_PRINT_HPP
9#define ZCLIBLOG_EXECUTORS_PRINT_HPP
10
11#include "basic_executor.hpp"
12#include <print>
13
14// NOLINTNEXTLINE
15namespace ZCLibLog::executors {
22 explicit println() {}
23 void do_execute(ELString msg, ELogLevel) override {
24 std::println("{}", msg);
25 }
26 };
27
34 explicit print() {}
35 void do_execute(ELString msg, ELogLevel) override {
36 std::print("{}\n", msg);
37 }
38 };
39}
40
41#endif //ZCLIBLOG_EXECUTORS_PRINT_HPP
预定的一些executor
Definition android_log.hpp:17
执行器的基类抽象类
Definition logger_types.hpp:106
ELogLevel ELogLevel
简化写法
Definition logger_types.hpp:116
ELString ELString
简化写法
Definition logger_types.hpp:114
C++"print"打印执行器
Definition print.hpp:33
void do_execute(ELString msg, ELogLevel) override
自定义执行器需要重载的执行函数
Definition print.hpp:35
print()
Definition print.hpp:34
C++"println"打印执行器
Definition print.hpp:21
println()
Definition print.hpp:22
void do_execute(ELString msg, ELogLevel) override
自定义执行器需要重载的执行函数
Definition print.hpp:23