code: public Object getService( final Bundle bundle, ServiceRegistration registration )
      {
          class ManagedPaxLoggingService
              implements PaxLoggingService, LogService, ManagedService
          {
              private final String fqcn = getClass().getName();
  
              public void log( int level, String message )
              {
                  PaxLoggingServiceImpl.this.log(bundle, level, message, null, fqcn);
              }
  
              public void log( int level, String message, Throwable exception )
              {
                  PaxLoggingServiceImpl.this.log(bundle, level, message, exception, fqcn);
              }
  
              public void log( ServiceReference sr, int level, String message )
              {
                  Bundle b = bundle == null && sr != null ? sr.getBundle() : bundle;
                  PaxLoggingServiceImpl.this.log(b, level, message, null, fqcn);
              }
  
              public void log( ServiceReference sr, int level, String message, Throwable exception )
              {
                  Bundle b = bundle == null && sr != null ? sr.getBundle() : bundle;
                  PaxLoggingServiceImpl.this.log(b, level, message, exception, fqcn);
              }
  
              public int getLogLevel()
              {
                  return PaxLoggingServiceImpl.this.getLogLevel();
              }
  
              public PaxLogger getLogger( Bundle myBundle, String category, String fqcn )
              {
                  return PaxLoggingServiceImpl.this.getLogger( myBundle, category, fqcn );
              }
  
              public void updated( Dictionary<String, ?> configuration )
                  throws ConfigurationException
              {
                  PaxLoggingServiceImpl.this.updated( configuration );
              }
  
              public PaxContext getPaxContext()
              {
                  return PaxLoggingServiceImpl.this.getPaxContext();
              }
          }
  
          return new ManagedPaxLoggingService();
      }
docs: /*
  use local class to delegate calls to underlying instance while keeping bundle reference