Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the corresponding SLF4J method for @Loggable chooseable #224

Open
jondoe1337 opened this issue May 30, 2016 · 3 comments
Open

Make the corresponding SLF4J method for @Loggable chooseable #224

jondoe1337 opened this issue May 30, 2016 · 3 comments

Comments

@jondoe1337
Copy link

jondoe1337 commented May 30, 2016

Iam currently working on an own slf4j implementation where it would be useful to get, for example, the invocation time of a method produced by @loggable in an argument that are passed over to the slf4j-api.

As far as i see, the LogHelper of jcabi invokes constantly the single String argument methods with the respective LogLevel of the slf4j-Logger.

My current workaround is to parse the string inside of the Logger implementation to check wether it contains the Log-Messages produced by @loggable and transform it in my format.

@dmarkov
Copy link

dmarkov commented Jun 3, 2016

@yegor256 please do something about this issue

@yegor256
Copy link
Member

@jondoe1337 I see the problem, but how do you think we can do that? how can we make that method configurable? technically

@jondoe1337
Copy link
Author

How about doing Reflection with a given class/method String parameter that it set in the annotation @loggable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants