• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

probably misunderstanding AspectJ?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Not sure if this is the right subforum, please correct me if its not.

I have an issue with AspectJ I just cannot figure out. I have several projects, which all use an individual aspect. This aspect is used to log entering and leaving statements for debug purposes. For this i'm using Log4j 1.2.9. For each project i have a separate log category, which is used by the individual aspect of the class. However, i cannot seem to get these to work properly. All the entering and leaving statements of all projects are currently put into 1 log category. This leads me to suspect that the first aspect is applied to all projects. The aspect contains the following code:



Does anybody have any idea why this is happening, or even better, how to fix this? Using eclipse as an IDE.

PS: LogCategory is a wrapper for log4j
 
reply
    Bookmark Topic Watch Topic
  • New Topic