netty5/common/src/test/java/io/netty/util
Norman Maurer afe0767e9c
Log the correct line-number when using SLF4j with netty if possible. (#8258)
* Log the correct line-number when using SLF4j with netty if possible.

Motivation:

At the moment we do not log the correct line number in many cases as it will log the line number of the logger wrapper itself. Slf4j does have an extra interface that can be used to filter out these nad make it more usable with logging wrappers.

Modifications:

Detect if the returned logger implements LocationAwareLogger and if so make use of its extra methods to be able to log the correct origin of the log request.

Result:

Better logging when using slf4j.
2018-09-07 07:34:22 +02:00
..
concurrent Fix race condition in the NonStickyEventExecutorGroup (#8232) 2018-08-29 19:42:01 +02:00
internal Log the correct line-number when using SLF4j with netty if possible. (#8258) 2018-09-07 07:34:22 +02:00
AbstractReferenceCountedTest.java Fix the error message in ReferenceCounted.release (#7921) 2018-05-08 20:09:16 +02:00
AsciiStringCharacterTest.java Fix length calculation in AsciiString.indexOf(...) and so eliminate ArrayIndexOutOfBoundsException. (#8116) 2018-07-11 10:21:17 +01:00
AsciiStringMemoryTest.java HttpConversionUtil does not account for COOKIE compression 2015-12-08 20:00:31 -08:00
AttributeKeyTest.java Allow to get existing ChannelOption / AttributeKey from String 2015-02-18 09:29:37 +01:00
ConstantPoolTest.java Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075) 2018-06-29 07:56:04 +02:00
DefaultAttributeMapTest.java Fix misordered 'assertEquals' arguments in tests 2017-03-08 22:48:37 -08:00
DomainNameMappingTest.java Replace DomainMappingBuilder with DomainNameMappingBuilder 2016-05-18 12:03:14 +02:00
HashedWheelTimerTest.java HashedWheelTimer.newTimeout(...) may overflow 2018-03-03 15:00:47 -08:00
NettyRuntimeTests.java Make methods 'static' where it possible 2017-10-21 14:59:26 +02:00
NetUtilTest.java Move methods for decode hex dump into StringUtil 2017-06-23 18:52:42 +02:00
RecyclerTest.java Recycler will produce npe error when multiple recycled at different thread 2018-08-27 08:58:40 +02:00
ResourceLeakDetectorTest.java fix the typos 2017-04-20 04:56:09 +02:00
ThreadDeathWatcherTest.java Non-sticky thread groups in DefaultThreadFactory 2016-07-14 22:06:40 +02:00