Skip to content

Enable SqlLogging by class/dao? #2412

Closed Answered by stevenschlansker
chriskessel asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, you're entirely right, how did I miss that!

To implement that, can't you implement a logger that checks the extension class?

void logAfterExecution(StatementContext context) {
    if (context.getExtensionMethod().getType() == NewFeatureThingExtension.class) {
        .... log
    }
}

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chriskessel
Comment options

@stevenschlansker
Comment options

Answer selected by stevenschlansker
Comment options

You must be logged in to vote
8 replies
@stevenschlansker
Comment options

@chriskessel
Comment options

@stevenschlansker
Comment options

@chriskessel
Comment options

@stevenschlansker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants