You can write your own class extending Logger
to do what you want. You then install that class in to the application context to replace the default. The best place to do this would be in the @PostContextCreate
method of a LifeCycle
class:
@PostContextCreate
void postContextCreate(IEclipseContext context)
{
Logger myClass = ContextInjectionFactory.make(MyLoggerClass.class, context);
context.set(Logger.class, myClass);
}
LifeCycle
class is described here