Skip to content

Releases: DavidingPlus/dlog

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 28 Sep 12:22

Release Notes

  • 为库提供的全局宏统一添加 DLOG_ 前缀,减少与使用者项目中的宏名称冲突。
  • XMake 从模板生成 config.h 和 globalmacros.h,并将它们与其他公共头文件一起导出。
  • 发布元数据新增 package_name 和 macro_prefix,供 xmake-repo 自动生成包配方。

What's Changed

Generate And Export Macro Prefix DLOG Headers by @DavidingPlus in #3

Full Changelog: v1.0.2...v1.0.3

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 28 Sep 09:04

Release Notes

添加命名空间 dlog 支持。

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 28 Sep 06:52

Release Notes

  • Release CI 会在 XMake 配置时生成 package-metadata.json,记录仓库、包名、发布版本,以及按 common、windows、linux 分组的依赖声明。
  • 发布流程会将 metadata 作为更新事件的 payload 转发给 xmake-repo,供接收端更新包信息。
  • 在 xmake.lua 中集中维护对外依赖清单;当前 fmt 被声明为所有平台通用依赖。

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Sep 09:40

Release Notes

dlog 是一个基于 C++17 的轻量级日志库,提供流式日志接口、可配置输出、文件轮转和异步写盘。

功能

  • 提供 TRACE、DEBUG、INFO、WARN、ERROR、FATAL 六个日志等级,可使用 DLOG_INFO() << "message" 等宏记录日志。
  • 日志包含本地时间、源文件名和行号;等级文字支持 ANSI 颜色。
  • 默认输出到 stdout,也可通过回调接入其他输出目标。
  • DLOG_SYS_ERROR(savedErrno) 和 DLOG_SYS_FATAL(savedErrno) 可附加调用方保存的系统错误码及其描述。
  • LogFile 支持按日期和文件大小轮转,并在程序重启后继续使用当天的新序号。
  • AsyncLogging 使用后台线程批量写入日志,并在停止时处理缓冲中的剩余数据。
  • 提供带缓冲的文件写入、固定大小缓冲区、时间戳和线程辅助组件。
  • 使用 xmake 构建,提供 Windows 和 Linux 配置,并支持静态库或动态库。