monolog
monolog copied to clipboard
Implement ElasticSearchFormatter
For special case, i want to custom format of ElasticSearchFormater, but i can't extend or implement it. Why we do it for more flexible?
Why can't you extend ElasticsearchFormater and override getDocument to do what you need?
I try extended it but not work, in ElasticsearchHandler has condition formater instanceof ElasticsearchFormater in setFormatter function.
That shouldn't be a problem. A class extending it will still be an instance of the parent class.