@Override protected Log getReturnValueHandlerLogger() { return SimpLogging.forLog(HandlerMethodReturnValueHandlerComposite.defaultLogger); }
@Override protected Log getHandlerMethodLogger() { return SimpLogging.forLog(HandlerMethod.defaultLogger); }
/** * Create a primary logger for the given class and wrap it with a composite * that delegates to it or to the fallback logger named * "org.springframework.web.SimpLogging", if the primary is not enabled. * @param primaryLoggerClass the class for the name of the primary logger * @return the resulting composite logger */ public static Log forLogName(Class<?> primaryLoggerClass) { Log primaryLogger = LogFactory.getLog(primaryLoggerClass); return forLog(primaryLogger); }
private static ReactorNettyTcpClient<byte[]> initTcpClient(String host, int port) { ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(host, port, new StompReactorNettyCodec()); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
@Bean public AbstractSubscribableChannel clientInboundChannel() { ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientInboundChannelExecutor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); ChannelRegistration reg = getClientInboundChannelRegistration(); if (reg.hasInterceptors()) { channel.setInterceptors(reg.getInterceptors()); } return channel; }
@Bean public AbstractSubscribableChannel clientOutboundChannel() { ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientOutboundChannelExecutor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); ChannelRegistration reg = getClientOutboundChannelRegistration(); if (reg.hasInterceptors()) { channel.setInterceptors(reg.getInterceptors()); } return channel; }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
@Bean public AbstractSubscribableChannel brokerChannel() { ChannelRegistration reg = getBrokerRegistry().getBrokerChannelRegistration(); ExecutorSubscribableChannel channel = (reg.hasTaskExecutor() ? new ExecutorSubscribableChannel(brokerChannelExecutor()) : new ExecutorSubscribableChannel()); reg.interceptors(new ImmutableMessageChannelInterceptor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); channel.setInterceptors(reg.getInterceptors()); return channel; }
@Override protected Log getReturnValueHandlerLogger() { return SimpLogging.forLog(HandlerMethodReturnValueHandlerComposite.defaultLogger); }
@Override protected Log getHandlerMethodLogger() { return SimpLogging.forLog(HandlerMethod.defaultLogger); }
/** * Create a primary logger for the given class and wrap it with a composite * that delegates to it or to the fallback logger named * "org.springframework.web.SimpLogging", if the primary is not enabled. * @param primaryLoggerClass the class for the name of the primary logger * @return the resulting composite logger */ public static Log forLogName(Class<?> primaryLoggerClass) { Log primaryLogger = LogFactory.getLog(primaryLoggerClass); return forLog(primaryLogger); }
private static ReactorNettyTcpClient<byte[]> initTcpClient(String host, int port) { ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(host, port, new StompReactorNettyCodec()); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
@Bean public AbstractSubscribableChannel clientOutboundChannel() { ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientOutboundChannelExecutor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); ChannelRegistration reg = getClientOutboundChannelRegistration(); if (reg.hasInterceptors()) { channel.setInterceptors(reg.getInterceptors()); } return channel; }
@Bean public AbstractSubscribableChannel clientInboundChannel() { ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientInboundChannelExecutor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); ChannelRegistration reg = getClientInboundChannelRegistration(); if (reg.hasInterceptors()) { channel.setInterceptors(reg.getInterceptors()); } return channel; }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
@Bean public AbstractSubscribableChannel brokerChannel() { ChannelRegistration reg = getBrokerRegistry().getBrokerChannelRegistration(); ExecutorSubscribableChannel channel = (reg.hasTaskExecutor() ? new ExecutorSubscribableChannel(brokerChannelExecutor()) : new ExecutorSubscribableChannel()); reg.interceptors(new ImmutableMessageChannelInterceptor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); channel.setInterceptors(reg.getInterceptors()); return channel; }
@Override protected Log getHandlerMethodLogger() { return SimpLogging.forLog(HandlerMethod.defaultLogger); }
@Bean public AbstractSubscribableChannel clientInboundChannel() { ExecutorSubscribableChannel channel = new ExecutorSubscribableChannel(clientInboundChannelExecutor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); ChannelRegistration reg = getClientInboundChannelRegistration(); if (reg.hasInterceptors()) { channel.setInterceptors(reg.getInterceptors()); } return channel; }
private ReactorNettyTcpClient<byte[]> initTcpClient() { StompDecoder decoder = new StompDecoder(); if (this.headerInitializer != null) { decoder.setHeaderInitializer(this.headerInitializer); } ReactorNettyCodec<byte[]> codec = new StompReactorNettyCodec(decoder); ReactorNettyTcpClient<byte[]> client = new ReactorNettyTcpClient<>(this.relayHost, this.relayPort, codec); client.setLogger(SimpLogging.forLog(client.getLogger())); return client; }
@Bean public AbstractSubscribableChannel brokerChannel() { ChannelRegistration reg = getBrokerRegistry().getBrokerChannelRegistration(); ExecutorSubscribableChannel channel = (reg.hasTaskExecutor() ? new ExecutorSubscribableChannel(brokerChannelExecutor()) : new ExecutorSubscribableChannel()); reg.interceptors(new ImmutableMessageChannelInterceptor()); channel.setLogger(SimpLogging.forLog(channel.getLogger())); channel.setInterceptors(reg.getInterceptors()); return channel; }