Skip to content

split up DefaultLogWriter::logRequest() #38

@lsmith77

Description

@lsmith77

Would you be open a to a PR to split this method by extracting a protected method “getMessage()” that basically does everything except for the call to Log::info()? This would make it feasible to extend the class in case one wants to store the data else where, f.e. in a DB. Potentially there should even be another “formatMessage()” method and “getMessage()” just provides an array of data. what do you think?

https://github.com/spatie/laravel-http-logger/blob/master/src/DefaultLogWriter.php#L12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions