mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Remove final
from class declaration (#1859)
Most (if not all) other classes in the project are not marked as final. Although it's possible to extend the functionality of this class by using composition, it goes against how the rest of the library works for no apparent reason. In my use case, I was trying to add a field linking the log entry to a request [as described in the Cloud Logging documentation](https://cloud.google.com/run/docs/logging#correlate-logs).
This commit is contained in:
committed by
GitHub
parent
479c936d2c
commit
ee7e2fa4df
@@ -22,7 +22,7 @@ use Monolog\LogRecord;
|
||||
*
|
||||
* @author Luís Cobucci <lcobucci@gmail.com>
|
||||
*/
|
||||
final class GoogleCloudLoggingFormatter extends JsonFormatter
|
||||
class GoogleCloudLoggingFormatter extends JsonFormatter
|
||||
{
|
||||
protected function normalizeRecord(LogRecord $record): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user