Bind the OSGi <code>LogService</code> to use for error reporting.

@param logService
the OSGi <code>LogService</code>
320767
@Reference(cardinality = ReferenceCardinality.OPTIONAL,
               policy = ReferencePolicy.DYNAMIC)
    protected synchronized void setLogService(LogService logService) {
        this.logService = logService;
    }
656479
public void error(String message) {
        if (loggingService == null) {
            System.err.println(message);
            return;
        }
        loggingService.error(pluginId, loggerName, message);
    }
557176
public SingleLogoutService getSingleLogoutService(final String binding) {
        return getSingleLogoutServices().stream().filter(acs -> acs.getBinding().equalsIgnoreCase(binding)).findFirst().orElse(null);
    }
820078
@Override
    public void registerService(Class<?> clazz, Object service) {
        this.services.put(clazz, service);
    }
1089650
public void write(String logService, LogLevel level, String msg, Throwable t)
	{
		doWrite(logService, level, msg, t);
	}
498174
@Override
    public void registerService(ServiceInstance<T> service) throws Exception
    {
        Entry<T> newEntry = new Entry<T>(service);
        Entry<T> oldEntry = services.putIfAbsent(service.getId(), newEntry);
        Entry<T> useEntry = (oldEntry != null) ? oldEntry : newEntry;
        synchronized(useEntry)
        {
            if ( useEntry == newEntry ) // i.e. is new
            {
                useEntry.cache = makeNodeCache(service);
            }
            internalRegisterService(service);
        }
    }
820150
private synchronized void ungetLogService() {
        doWarnIfClosed = doDebug();
        if (log != null) {
            bc.ungetService(logSR);
            logSR = null;
            log = null;
        }
    }
864404
public void registerService(Object service)
    {
    	this.setService(service);
    	String serviceClass = getInterfaceClassName(); 

    	if (service != null)
    		serviceRegistration = context.registerService(serviceClass, this.service, properties);
    }
573278
public static <T> void register(final Class<T> service) {
        for (T each : ServiceLoader.load(service)) {
            registerServiceClass(service, each);
        }
    }
7283
private static synchronized void initializeLog4JSubSystem(String configFile)
    {
        LoggerFactory.getBootLogger().info("Initializing Log4J using file: '" + configFile + "'");
        if(configFile == null || "".equals(configFile.trim()))
        {
            // no configuration available
            LoggerFactory.getBootLogger().warn("No log4j configuration file specified");
        }
        else
        {
            // try resource look in classpath
            URL url = ClassHelper.getResource(configFile);
            LoggerFactory.getBootLogger().info("Initializing Log4J : resource from config file:" + url);
            if (url != null)
            {
                PropertyConfigurator.configure(url);
            }
            // if file is not in classpath try ordinary filesystem lookup
            else
            {
                PropertyConfigurator.configure(configFile);
            }
        }
        log4jConfigured = true;
    }
1164881
@Autowired(required=false)
    public void setConversionService(ConversionService conversionService) {
        Assert.notNull(conversionService, "conversionService must not be null");
        this.conversionService = conversionService;
    }
873206
protected void registerBinder(ResourceConfig configuration) {
        configuration.register(new AbstractBinder() {
            @Override
            protected void configure() {
                bind(Container.this).to(Container.class).proxy(false);
            }
        });
        configuration.registerInstances(new ContainerLifecycleListener() {
            @Override
            public void onStartup(org.glassfish.jersey.server.spi.Container container) {
                SystemEventBus.publish(new StartupEvent(Container.this, application));
                logger.trace(Messages.get("info.container.startup"));
            }

            @Override
            public void onReload(org.glassfish.jersey.server.spi.Container container) {
                SystemEventBus.publish(new ReloadedEvent(Container.this, application));
                logger.trace(Messages.get("info.container.reload"));
            }

            @Override
            public void onShutdown(org.glassfish.jersey.server.spi.Container container) {
                logger.info("Container onShutdown");
                SystemEventBus.publish(new ShutdownEvent(Container.this, application));
                logger.trace(Messages.get("info.container.shutdown"));
            }
        });
    }
521522
@SuppressWarnings("unchecked")
    protected void processInitialLogHandlerServices() throws InvalidSyntaxException {
        ServiceReference<LogHandler>[] servRefs = (ServiceReference<LogHandler>[])
                        bundleContext.getServiceReferences(LogHandler.class.getName(), null);

        if (servRefs != null) {
            for (ServiceReference<LogHandler> servRef : servRefs) {
                setLogHandler(servRef);
            }
        }
    }
1270808
@Override
	public void injectServices(ServiceRegistryImplementor serviceRegistry) {
		if ( gridDialect instanceof ServiceRegistryAwareService ) {
			( (ServiceRegistryAwareService) gridDialect ).injectServices( serviceRegistry );
		}
	}
1102641
public void setLogHandler(String id, LogHandler ref) {
        if (id != null && ref != null) {
            logHandlerServices.put(id, ref);
        }
    }
506165
public void bind(T service, Map<String, Object> props) {
    synchronized (serviceMap) {
      serviceMap.put(ServiceUtil.getComparableForServiceRanking(props), service);
      updateSortedServices();
    }
  }
836449
public void setUserService(
		com.liferay.portal.kernel.service.UserService userService) {
		this.userService = userService;
	}