Skip to content

Instantly share code, notes, and snippets.

@up1
Last active February 20, 2024 02:38
Show Gist options
  • Save up1/3a5919006d87c78453e6f0fb78045365 to your computer and use it in GitHub Desktop.
Save up1/3a5919006d87c78453e6f0fb78045365 to your computer and use it in GitHub Desktop.
Java :: Async logging
<Appenders>
<!-- Async Loggers will auto-flush in batches, so switch off immediateFlush. -->
<RandomAccessFile name="demo" fileName="mylog.log"
immediateFlush="false" append="false">
...
</RandomAccessFile>
</Appenders>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>4.0.0</version>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment