#include "Record.h"
extern "C" {
typedef std::wstring(*encryptFunc)(const std::wstring& plainText);
encryptFunc g_func;
bool g_encryption = false;
void setEncrytFunc(void* func)
{
g_func = (encryptFunc)func;
}
void setEncrypt(bool encrypt)
{
g_encryption = encrypt;
}
void encryptStr(const std::wstring& str, std::wstring& outStr)
{
if (g_encryption && g_func)
{
outStr = L"$" + g_func(str);
}
else
{
outStr = str;
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
c++ 第三方日志库,纯源码非dll
共21个文件
h:20个
cpp:1个
0 下载量 63 浏览量
2024-04-17
17:34:30
上传
评论
收藏 18KB ZIP 举报
温馨提示
支持多线程,支持日志加密 纯源码,编译时需要把源码添加到自己的工程中,否则会报链接错误。
资源推荐
资源详情
资源评论
收起资源包目录
plog.zip (21个子文件)
plog
Logger.h 2KB
Severity.h 1KB
Init.h 4KB
Formatters
MessageOnlyFormatter.h 458B
FuncMessageFormatter.h 535B
TxtFormatter.h 1KB
CsvFormatter.h 2KB
Converters
NativeEOLConverter.h 1KB
UTF8Converter.h 593B
Log.h 6KB
Util.h 11KB
Record.h 6KB
Record.cpp 594B
Appenders
RollingFileAppender.h 4KB
EventLogAppender.h 4KB
IAppender.h 222B
DebugOutputAppender.h 352B
ColorConsoleAppender.h 3KB
ConsoleAppender.h 1KB
AndroidAppender.h 1KB
WinApi.h 5KB
共 21 条
- 1
资源评论
冰激凌zz
- 粉丝: 123
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功