Netty: The right way to log message to files

时间:2015-10-06 08:29:24

标签: netty

I want to log connection records to files in Netty application. But log.info("XXXX") can issue an I/O request which will block current NIO thread causing a performance problem.

So what is the best way to log message in Netty?

1 个答案:

答案 0 :(得分:0)

如果这对您来说是个问题,我会看一下Java的异步日志框架之一。这是一对以极快和低延迟而享有良好声誉的人: