Giter Site home page Giter Site logo

loggable's People

Contributors

ananto30 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

loggable's Issues

question about how this work

I put the logger annotation and logger aspect in my project and also annotated method in my controller but nothing happens, i tried also with code on git-hub repo but nothing changed.
When I try to debug debugger don't get to this point?
do u have any idea?

Using for other Advices like @After,Before,AfterThrowing

Hey @Ananto30 Thanks for the great explanation and project.I am able to use with Around aspect successfully. It would be great if you can provide some example around other Advices as well thanks.

I tried to use below


  @Before(value = "execution(* com.abc.xyz..restclients...*(..))")
    fun logBeforeAllMethods(joinPoint: JoinPoint) {

        log.info("Request : " + joinPoint.signature.declaringTypeName + Arrays.toString(joinPoint.args))


    }

    @AfterReturning(value = "execution(* com.abc.xyz..restclients..*(..))")
    fun logAfterAllMethods(joinPoint: JoinPoint) {
        log.info("Response : " + joinPoint.signature.declaringTypeName + Arrays.toString(joinPoint.args))
    }

But both are printing same values expectation is print method input and output.

@Loggable annotation in the controller does not work

Hi @Ananto30 ,

Thank you for your annotation. Since I am pretty beginner to entire Spring stack it was helpful to understand via your thorough explanation. However, I have trouble running your code snippets.

Basically, I imported everything in my project however cannot directly use @loggable in my controller and get following error.

error: annotation type not applicable to this kind of declaration
@loggable

Since I am beginner and perhaps making some stupid mistakes.

Thank You

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.