hedii / laravel-gelf-logger

A package to send gelf logs to a gelf compatible backend like graylog
MIT License
125 stars 33 forks source link

Allow to configure max message length #15

Closed downace closed 4 years ago

downace commented 4 years ago

\Monolog\Formatter\GelfMessageFormatter by default truncates all messages that are longer that 32766

This can be overridden by passing $maxLength argument to the GelfMessageFormatter constructor. This can be added in https://github.com/hedii/laravel-gelf-logger/blob/master/src/GelfLoggerFactory.php#L69