Skip to content

Log each web request: DEBUG = too much, INFO = too little #902

@berlin-ab

Description

@berlin-ab

Logging for web-mvc controller requests or static files should appears with the HTTP method and path. This will make debugging easier in production and development environments.

<logger name="org.springframework.web" level="INFO"/>

INFO = 3 log lines with no useful information
DEBUG = 30 log lines, with little useful information

Expectation:

[time] GET /foobar?some=params
[time] Handled by FoobarController => someMethod(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions