Feature Request - batch logging in FluentLogger->post() function

Open
#22 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
php

Research direction

Start at the FluentLogger->post() entry point and inspect how requests are sent to the td agent and how the Fluentd interface handles multiple records. Clarify whether atomic batch logging and CSV fallback are both required, then define completion criteria for preserving all 50 items if the agent stops unexpectedly.

Written by the indexing model from the issue text.

Description

Hello,
I want to be able to write batch logs (50 items) atomically.
Currently, I'm posting logs in foreach loop in batch requests. However, if td agent stops unexpectedly, I need to write the complete request(50 items) to csv. Is it possible in the current code base ? Does fluentd interface support batch logging ?

Thanks
Aras

Dominant language
PHP
Stars
218
Forks
58
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluent/fluent-logger-php

All issues in fluent/fluent-logger-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.