Grails

single logger instance is injected into all filters

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.0.3
  • Fix Version/s: 1.4-M1
  • Component/s: Controllers
  • Labels:
    None
  • Environment:
    Windows XP, JDK 1.6.0_02

Description

Log messages from any filter come from the same log instance. The attached sample app demonstrates the issue, simply execute any action from the GUI and two separate filters will each write a log message. Note that all messages come from the same logger even though the messages are coming from two separate filters. (I noticed this same behavior in an app with many filters – all filters have the same logger.)

Issue Links

Activity

Hide
Peter Ledbrook added a comment -

I think the current filters implementation will need a thorough rethink. The filters are unusual in that they are not actually instances of their defining class, but of FilterConfig. This actually causes several problems, including the issue described here.

Show
Peter Ledbrook added a comment - I think the current filters implementation will need a thorough rethink. The filters are unusual in that they are not actually instances of their defining class, but of FilterConfig. This actually causes several problems, including the issue described here.
Hide
Graeme Rocher added a comment -

There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3

for 1.2 final only issues considered blocking will now be fixed

Show
Graeme Rocher added a comment - There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3 for 1.2 final only issues considered blocking will now be fixed
Hide
Jeff Brown added a comment -

Duplicates GRAILS-6077

Show
Jeff Brown added a comment - Duplicates GRAILS-6077

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: