Wrapper interface to a logger factory instance. By using this interface, common components can leave logs in the Jetspeed's logging context.
130131132133134135136137138139140141142143144
{ PortletServices ps = JetspeedPortletServices.getSingleton(); if (ps != null) { JetspeedLoggerFactory jsLoggerFactory = (JetspeedLoggerFactory) ps.getService(JetspeedLoggerFactory.class.getName()); if (jsLoggerFactory != null) { return jsLoggerFactory.getLogger(clazz); } } return noopLogger; }
161162163164165166167168169170171172173174175
{ PortletServices ps = JetspeedPortletServices.getSingleton(); if (ps != null) { JetspeedLoggerFactory jsLoggerFactory = (JetspeedLoggerFactory) ps.getService(JetspeedLoggerFactory.class.getName()); if (jsLoggerFactory != null) { return jsLoggerFactory.getLogger(name); } } return noopLogger; }
144145146147148149150151152153154155156157158
175176177178179180181182183184185186187188189