public class LogUtil extends Object
Constructor and Description |
---|
LogUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
printHeaders(org.apache.commons.logging.Log log,
io.netty.handler.codec.http.FullHttpResponse msg,
io.netty.channel.ChannelHandlerContext ctx)
Print the headers associated with the initial Http Response.
|
static void |
printSpecificLog(org.apache.commons.logging.Log log,
io.netty.channel.ChannelHandlerContext ctx,
String message)
Print specific debug logs with the
ChannelHandlerContext context. |
static void |
printWebSocketFrame(org.apache.commons.logging.Log log,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame,
io.netty.channel.ChannelHandlerContext ctx,
boolean isInbound)
Print
WebSocketFrame information. |
static void |
printWebSocketFrame(org.apache.commons.logging.Log log,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame,
io.netty.channel.ChannelHandlerContext ctx,
String customMsg,
boolean isInbound)
Print
WebSocketFrame information. |
public static void printHeaders(org.apache.commons.logging.Log log, io.netty.handler.codec.http.FullHttpResponse msg, io.netty.channel.ChannelHandlerContext ctx)
" >> Headers [channelContextId] [header name] : [header value]"
log
- Log
object of the relevant classmsg
- FullHttpResponse
response from the backendctx
- ChannelHandlerContext
contextpublic static void printWebSocketFrame(org.apache.commons.logging.Log log, io.netty.handler.codec.http.websocketx.WebSocketFrame frame, io.netty.channel.ChannelHandlerContext ctx, String customMsg, boolean isInbound)
WebSocketFrame
information.log
- Log
object of the relevant classframe
- WebSocketFrame
framectx
- ChannelHandlerContext
contextcustomMsg
- Custom message along with the frame informationisInbound
- true if the frame is inbound, false if it is outboundpublic static void printWebSocketFrame(org.apache.commons.logging.Log log, io.netty.handler.codec.http.websocketx.WebSocketFrame frame, io.netty.channel.ChannelHandlerContext ctx, boolean isInbound)
WebSocketFrame
information.log
- Log
object of the relevant classframe
- WebSocketFrame
framectx
- ChannelHandlerContext
contextisInbound
- true if the frame is inbound, false if it is outboundpublic static void printSpecificLog(org.apache.commons.logging.Log log, io.netty.channel.ChannelHandlerContext ctx, String message)
ChannelHandlerContext
context.log
- log Log
object of the relevant classctx
- ChannelHandlerContext
contextmessage
- Log messageCopyright © 2021 WSO2. All rights reserved.