public class WebsocketLogUtil extends Object
| Constructor and Description |
|---|
WebsocketLogUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
printHeaders(org.apache.log4j.Logger log,
io.netty.handler.codec.http.FullHttpRequest msg,
io.netty.channel.ChannelHandlerContext ctx)
Print the headers associated with the initial Http Request.
|
static void |
printSpecificLog(org.apache.log4j.Logger log,
io.netty.channel.ChannelHandlerContext ctx,
String message)
Print specific debug logs with the
ChannelHandlerContext context. |
static void |
printWebSocketFrame(org.apache.log4j.Logger log,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame,
io.netty.channel.ChannelHandlerContext ctx,
boolean isInbound)
Print
WebSocketFrame information. |
static void |
printWebSocketFrame(org.apache.log4j.Logger 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.log4j.Logger log,
io.netty.handler.codec.http.FullHttpRequest msg,
io.netty.channel.ChannelHandlerContext ctx)
" >> Headers [channelContextId] [header name] : [header value]"
log - Logger object of the relevant classmsg - FullHttpRequest response from the backendctx - ChannelHandlerContext contextpublic static void printWebSocketFrame(org.apache.log4j.Logger log,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame,
io.netty.channel.ChannelHandlerContext ctx,
String customMsg,
boolean isInbound)
WebSocketFrame information.log - Logger 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.log4j.Logger log,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame,
io.netty.channel.ChannelHandlerContext ctx,
boolean isInbound)
WebSocketFrame information.log - Logger 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.log4j.Logger log,
io.netty.channel.ChannelHandlerContext ctx,
String message)
ChannelHandlerContext context.log - log Logger object of the relevant classctx - ChannelHandlerContext contextmessage - Log messageCopyright © 2021 WSO2. All rights reserved.