Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
cookiess 1773502d6c | 1 year ago | |
---|---|---|
lualog | 1 year ago | |
test | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
lualog.lmak | 1 year ago | |
lualog.mak | 1 year ago | |
lualog.vcxproj | 1 year ago | |
lualog.vcxproj.filters | 1 year ago |
c++和lua通用的多线程日志库
local llog = require("lualog")
local LOG_LEVEL = llog.LOG_LEVEL
llog.option("./newlog/", "qtest", 1, 1);
llog.set_max_line(500000);
llog.daemon(true)
llog.is_filter(LOG_LEVEL.DEBUG)
llog.filter(LOG_LEVEL.DEBUG)
llog.add_dest("qtest");
llog.add_lvl_dest(LOG_LEVEL.ERROR)
llog.debug("aaaaaaaaaa")
llog.info("bbbb")
llog.warn("cccccc")
llog.dump("dddddddddd")
llog.error("eeeeeeeeeeee")
#include "logger.h"
auto logger = logger::log_service::instance();
logger->option("./newlog/", "qtest", 1, logger::rolling_type::DAYLY)
logger->set_max_line(500000);
logger->is_filter(logger::log_level::DEBUG)
logger->filter(logger::log_level::DEBUG)
logger->add_dest("qtest");
logger->add_lvl_dest(logger::log_level::DEBUG);
//异步多线程
logger->start();
LOG_DEBUG << "aaaaaaaaaa";
LOG_WARN << "bbbb";
LOG_INFO << "cccccc";
LOG_ERROR << "dddddddddd";
LOG_FETAL << "eeeeeeeeeeee";
//同步日志输出
logger->terminal();
PRINT_DEBUG << "aaaaaaaaaa";
PRINT_WARN << "bbbb";
PRINT_INFO << "cccccc";
PRINT_ERROR << "dddddddddd";
PRINT_FETAL << "eeeeeeeeeeee";
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》