Skip to content

Conversation

@snej
Copy link
Collaborator

@snej snej commented Dec 10, 2025

This is for use by the cbl-log and cblite tools.

  • New class TextLogDecoder parses LiteCore text logs the same way as LogDecode does for binary logs.
  • MultiLogDecoder recognizes when a log file is text, and opens it using a TextLogDecoder.
  • Fixed a few minor bugs in MultiLogDecoder.
  • Added a few more ANSI escape codes to Tool.hh

@snej snej force-pushed the feature/text-log-decoder branch 2 times, most recently from fd52a3c to fc3a067 Compare December 11, 2025 00:11
This is for use by the cbl-log and cblite tools.

- New class TextLogDecoder parses LiteCore text logs the same way as
  LogDecode does for binary logs.
- MultiLogDecoder recognizes when a log file is text, and opens it
  using a TextLogDecoder.
- Fixed a few minor bugs in MultiLogDecoder.
- Added a few more ANSI escape codes to Tool.hh
@snej snej force-pushed the feature/text-log-decoder branch from fc3a067 to 7a46221 Compare December 11, 2025 00:20
@cbl-bot
Copy link

cbl-bot commented Dec 11, 2025

Code Coverage Results:

Type Percentage
branches 65.89
functions 78.18
instantiations 71.68
lines 77.15
regions 73.51

During parsing the `=value` part is removed from the flag name,
and a call to `nextArg()` in a handler will return that value.
@snej snej force-pushed the feature/text-log-decoder branch from 9a099dc to d10d263 Compare December 11, 2025 17:00
@snej
Copy link
Collaborator Author

snej commented Dec 15, 2025

macOS build failed due to an unrelated test failure:

>>>>> TEST: Database BackgroundDB torture test
WARNING: RefCounted object <litecore::Housekeeper @ 0x60e0000e6e80> retained while it had an invalid refCount of 0 (0x0)
libc++abi: terminating due to uncaught exception of type std::runtime_error: RefCounted object <litecore::Housekeeper @ 0x60e0000e6e80> retained while it had an invalid refCount of 0 (0x0)

@snej snej requested a review from jianminzhao December 15, 2025 17:00
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.

3 participants