Skip to content

Custom log format for datasource-proxy #170

@fbeaufume

Description

@fbeaufume

Thank you for this library.

I'm looking for a way to use a custom format for datasource-proxy instead of the default Name:dataSource, Connection:8, Time:7, Success:True, Type:Prepared, ....

In datasource-proxy I think that it requires a custom QueryLogEntryCreator implementation.

I'd like to see a way in spring-boot-data-source-decorator to plug such bean, for example with:

@Bean
public QueryLogEntryCreator queryLogEntryCreator() {
    return new MyQueryLogEntryCreator();
}

Could this be done ? Or is there already a solution to customize the logs format ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions