Skip to content

Add new ECS log format - #52

Merged
hilarex merged 3 commits into
mainfrom
feat-ecs-log-format
May 8, 2026
Merged

Add new ECS log format#52
hilarex merged 3 commits into
mainfrom
feat-ecs-log-format

Conversation

@hilarex

@hilarex hilarex commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a new ECS-compatible logging format for Trapster, with a modular logger refactor that enables flexible format/output combinations while preserving existing logger compatibility.

  • Split monolithic logger implementation into trapster/logger/ with one module per logger component (base, json, file, api, redis, ecs, factory, __init__).
  • Added a new composable logging path:
    • formats: default, ecs
    • outputs: terminal, file, api, redis
  • Introduced OutputLogger + formatter layer so config can express combinations like:
    • default JSON -> API
    • ECS -> API
    • default JSON -> terminal
  • Kept retrocompatibility with existing name-based logger configs (JsonLogger, FileLogger, ApiLogger, RedisLogger, EcsLogger).
  • Expanded and normalized ECS output semantics:

@hilarex
hilarex merged commit 0cec5e1 into main May 8, 2026
1 check passed
@hilarex
hilarex deleted the feat-ecs-log-format branch May 8, 2026 09:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant