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

@Loggable annotation #101

Closed
yegor256 opened this issue Nov 19, 2012 · 3 comments
Closed

@Loggable annotation #101

yegor256 opened this issue Nov 19, 2012 · 3 comments
Assignees
Milestone

Comments

@yegor256
Copy link
Member

Let's introduce an annotation and an aspect that will log every call to a method:

import com.jcabi.aspects.Loggable;
@Loggable
public void call(String arg) {
  // do something
}

Every time we call this method it has to be logged through com.jcabi.log.Logger.

@ghost ghost assigned yegor256 Nov 19, 2012
@yegor256
Copy link
Member Author

There should be a possible option to change logging level (INFO by default):

@Loggable(Loggable.DEBUG)
public void call(String arg) {

@yegor256
Copy link
Member Author

would be also nice to have an ability to log the entire class

yegor256 pushed a commit that referenced this issue Nov 29, 2012
yegor256 pushed a commit that referenced this issue Nov 29, 2012
yegor256 pushed a commit that referenced this issue Nov 29, 2012
yegor256 pushed a commit that referenced this issue Nov 29, 2012
yegor256 pushed a commit that referenced this issue Nov 29, 2012
yegor256 pushed a commit that referenced this issue Nov 30, 2012
yegor256 pushed a commit that referenced this issue Nov 30, 2012
yegor256 pushed a commit that referenced this issue Nov 30, 2012
@yegor256
Copy link
Member Author

done

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

1 participant