Skip to content

Conversation

@genspark-ai-developer
Copy link

Summary

This PR removes the deprecated src/libipc/utility/log.h file as it is no longer used in the codebase.

Background

All code has been successfully migrated from the old utility/log interface to the new imp/log interface (completed in PR #166).

Changes

  • Deleted: src/libipc/utility/log.h

Old Interface (utility/log.h)

  • Printf-style logging: ipc::log() and ipc::error()
  • C-style variadic functions
  • Manual format specifiers (%d, %s, etc.)
  • No automatic metadata (timestamps, function names, log levels)

New Interface (imp/log.h)

  • Modern C++ stream-based logging
  • LIBIPC_LOG() macro for logger initialization
  • Type-safe streaming: log.error("msg", arg1, arg2)
  • Automatic timestamps, function names, and log levels
  • Multiple log levels: trace, debug, info, warning, error, failed

Verification

✅ Confirmed no remaining references to utility/log.h in:

  • All C++ source files (.cpp, .h, .hpp)
  • CMake files
  • Test files

This PR completes the log interface migration by removing the deprecated file.

Related

- Remove src/libipc/utility/log.h as it's no longer used
- All code has been migrated to use the new libipc/imp/log.h interface
- The old utility/log.h provided printf-style logging: ipc::log() and ipc::error()
- The new imp/log.h provides modern C++ stream-based logging with LIBIPC_LOG() macro
- Verified that there are no remaining references to utility/log.h in the codebase

This completes the log interface migration by removing the deprecated file.
@mutouyun mutouyun merged commit 858a7a6 into master Dec 18, 2025
2 of 4 checks passed
@mutouyun mutouyun deleted the refactor/log branch December 18, 2025 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants