Skip to content

docs(examples): add structured logging example for Phase 3.0#316

Merged
kcenon merged 1 commit into
mainfrom
feature/structured-logging-phase3
Jan 11, 2026
Merged

docs(examples): add structured logging example for Phase 3.0#316
kcenon merged 1 commit into
mainfrom
feature/structured-logging-phase3

Conversation

@kcenon

@kcenon kcenon commented Jan 11, 2026

Copy link
Copy Markdown
Owner

Summary

Changes

  • New examples/structured_logging_example.cpp demonstrating:
    • Basic structured logging with key-value fields
    • Context propagation (trace ID, correlation ID)
    • RAII-based context scopes (log_context_scope, scoped_context)
    • JSON, Logfmt, and Template formatters
    • Multithreaded context handling
    • Logger-level context fields
  • Updated examples/CMakeLists.txt to include the new example

Test plan

  • Example builds successfully
  • Example runs without errors
  • All structured logging tests pass (30/30)

Closes #296

Add comprehensive structured_logging_example.cpp demonstrating:
- Basic structured logging with key-value fields
- Context propagation (trace ID, correlation ID)
- RAII-based context scopes (log_context_scope, scoped_context)
- JSON, Logfmt, and Template formatters
- Multithreaded context handling
- Logger-level context fields

This completes the documentation requirement for Issue #296
(Add Structured Logging Support - Phase 3.0).
@kcenon kcenon merged commit 367037d into main Jan 11, 2026
29 checks passed
@kcenon kcenon deleted the feature/structured-logging-phase3 branch January 11, 2026 10:44
kcenon added a commit that referenced this pull request Apr 13, 2026
Add comprehensive structured_logging_example.cpp demonstrating:
- Basic structured logging with key-value fields
- Context propagation (trace ID, correlation ID)
- RAII-based context scopes (log_context_scope, scoped_context)
- JSON, Logfmt, and Template formatters
- Multithreaded context handling
- Logger-level context fields

This completes the documentation requirement for Issue #296
(Add Structured Logging Support - Phase 3.0).
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.

[FEATURE] Phase 3.0: Add Structured Logging Support

1 participant