ENT-2695 Restore async logging (#4195)

* Replace error code generation technique with custom event re-writer.
Switch to RandomAccessFile appenders because they supposedly give higher throughput.

* Review feedback
This commit is contained in:
Rick Parker
2018-11-08 14:33:45 +00:00
committed by GitHub
parent 99f6cc9e65
commit 9277042db8
7 changed files with 97 additions and 62 deletions

View File

@ -1,2 +1,2 @@
log4jContextSelector=net.corda.node.utilities.logging.AsyncLoggerContextSelectorNoThreadLocal
Log4jContextSelector=net.corda.node.utilities.logging.AsyncLoggerContextSelectorNoThreadLocal
AsyncLogger.RingBufferSize=262144

View File

@ -0,0 +1,12 @@
package net.corda.node.utilities.logging
import org.junit.Test
import kotlin.test.assertTrue
class AsyncLoggingTest {
@Test
fun `async logging is configured`() {
assertTrue(AsyncLoggerContextSelectorNoThreadLocal.isSelected())
}
}