使用Poco::Logger实现日志功能

来源:互联网 发布:专辑封面 知乎 编辑:程序博客网 时间:2024/06/06 00:46

使用的Poco头文件及其对应的命名空间

 

#include "Poco/FormattingChannel.h"
#include "Poco/FileChannel.h"
#include "Poco/PatternFormatter.h"

using Poco::Message;
using Poco::PatternFormatter;
using Poco::FileChannel;
using Poco::FormattingChannel;
using std::string;

 

测试代码

 

原创粉丝点击