fluent / fluent/fluent-logger-php

Seems like the post() method of FluentLogger can not handle numeric arrays

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
218
Forks
58
PR merge metrics
No merged PRs in 30d

Description

This problem was costing me some time to find that only string indicies in the array are allowed:

```
/**
* send a message to specified fluentd.
*
* @param string $tag
* @param array $data
* @return bool
*
* @api
*/
public function post($tag, array $data)
{
$entity = new Entity($tag, $data);

return $this->postImpl($entity);
}
```

I do now know the exact reason for this behaviour, but can you please just apply PHPs `strval()` function for posted arrays with numeric indicies?

If this problem does not result from the library (I am not 100% sure) please sorry for bothering the wrong implementors ;-)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.