Search code examples
javalog4jreal-timeslf4jlogback

Do log4j or Logback support memory mapped files?


Does any of these logging libraries support memory mapped files? If not, is there a Java logging library that supports it?

UPDATES:

@paulsm4 I am talking about java.nio.MappedByteBuffer.


Solution

  • I'm not sure what you mean by "memory mapped files", or what exactly you're trying to accomplish.

    But one approach might be to write your logs to a RAM disk. For example:

    http://www.ubuntuka.com/ubuntu-ramdisk-ramdrive-easy-way/