Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] I have changed my logger aspect and not it displays some messages twice, how come?

I do not think it matters, but here is the code for the LoggerHolderAspect:
========================================================
package com.shunra.poc.logging;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

public aspect LoggerHolderAspect pertypewithin(@LogMe *) {
  private Logger logger;
  public void initLogger() {
    logger = LogManager.getLogger(getWithinTypeName());
  }
  public Logger getLogger() {
    return logger;
  }
}
========================================================

Thank you very much in advance.

--
View this message in context: http://aspectj.2085585.n4.nabble.com/I-have-changed-my-logger-aspect-and-not-it-displays-some-messages-twice-how-come-tp4202008p4208357.html
Sent from the AspectJ - users mailing list archive at Nabble.com.


Back to the top