We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @brief 使用格式化方式将日志级别level的日志写入到logger */ #define SYLAR_LOG_FMT_LEVEL(logger, level, fmt, ...) \ if(logger->getLevel() <= level) \ sylar::LogEventWrap(sylar::LogEvent::ptr(new sylar::LogEvent(logger, level, \ __FILE__, __LINE__, 0, sylar::GetThreadId(),\ sylar::GetFiberId(), time(0), sylar::Thread::GetName()))).getEvent()->format(fmt, __VA_ARGS__) /** * @brief 使用格式化方式将日志级别debug的日志写入到logger */ #define SYLAR_LOG_FMT_DEBUG(logger, fmt, ...) SYLAR_LOG_FMT_LEVEL(logger, sylar::LogLevel::DEBUG, fmt, __VA_ARGS__) ... ...
/** * @brief 使用格式化方式将日志级别level的日志写入到logger */ #define SYLAR_LOG_FMT_LEVEL(logger, level, fmt, ...) \ if(logger->getLevel() <= level) \ sylar::LogEventWrap(sylar::LogEvent::ptr(new sylar::LogEvent(logger, level, \ __FILE__, __LINE__, 0, sylar::GetThreadId(),\ sylar::GetFiberId(), time(0), sylar::Thread::GetName()))).getEvent()->format(fmt, ##__VA_ARGS__) /** * @brief 使用格式化方式将日志级别debug的日志写入到logger */ #define SYLAR_LOG_FMT_DEBUG(logger, fmt, ...) SYLAR_LOG_FMT_LEVEL(logger, sylar::LogLevel::DEBUG, fmt, ##__VA_ARGS__) ... ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
源代码
修改后
The text was updated successfully, but these errors were encountered: