Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4345

@Log annotation should support naming the logger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-beta-1
    • 1.8-beta-2
    • groovy-jdk
    • None
    • all
    • Patch

    Description

      The @Log annotation will automatically add a Logger named log to an annotated class.

      Several people have requested the ability to name the logger.

      This change adds an optional parameter to all of the @Log family of annotations. Default value is log. Otherwise you can name it whatever you want. If there is a name conflict with a field in the class then a compile error occurs.

      Attachments

        Activity

          People

            hamletdrc Hamlet D'Arcy
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: