I think Modules.override would do the trick, use it in one of your modules:
Modules.override(new AbstractModule() { @Override protected void configure() { // do whatever you need with your Logger bind(Logger.class)... } }); You can read more in Modules javadoc<http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/util/Modules.html#override(java.lang.Iterable<? extends com.google.inject.Module>)> hth, jordi On Thu, Nov 17, 2011 at 1:16 PM, Moandji Ezana <mwa...@gmail.com> wrote: > Hi, > > In introducing Guice to a project, I discovered that there's a built-in > binding to j.u.Logger. > > I would like to customise the Logger's Formatter and FileHandlers. Is > there a way I can either intervene before the Logger is injected, > or override the built-in java.util.Logger binding? > > Thanks, > > Moandji > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To post to this group, send email to google-guice@googlegroups.com. > To unsubscribe from this group, send email to > google-guice+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to google-guice@googlegroups.com. To unsubscribe from this group, send email to google-guice+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.