Hi *,

another question concerning iPOJO. I'm wondering how to use the osgi
logging service with iPOJO. Let's assume I want to use the logger like this:

@Component
public class LoggerTest {

    @Requires
    private LogService log;

    @Validate
    public void validate() {
        log.log(LogService.LOG_INFO, "Alles klar. Der Logger is da");
    }

    @Invalidate
    public void invalidate() {
        System.err.println("Verflixt, der logger is weg");
    }
}

Then I would need to convert every class, in which I want to use a
logger, to be a component. That would result in a lot of components.
That doesn't seem to be correct to me. Is there a best practice for
logging and iPOJO?

Cheers
Henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to