Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8956953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:52:49+00:00 2026-06-15T14:52:49+00:00

I need to log information with the following requirements: it is for writing data

  • 0

I need to log information with the following requirements:

  • it is for writing data to files, that will latter be processed
  • output lines have a predefined structure
  • has to be really fast
  • it should buffer the data and write it to files in background.
  • it should support rotating the file and also should allow manual file rotation whenever required

Do you happen to know any good library that supports this?
Or would you recommend writing it on my own? I wouldn’t mind implementing one on my own, but I would like to know what my options are before taking a decision.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:52:50+00:00Added an answer on June 15, 2026 at 2:52 pm

    Most common Java logging libraries support most of what you are asking for, except perhaps for the asynchronous writing part. You might want to have a look at the following widely-used libraries:

    • Log4J – Log4J is extremely configurable, but it does have some issues that are supposed to be resolved in the new 2.x version series, which is about to be released.

    • Logback – This was designed as a successor to Log4J 1.2 – Log4J 2.x will include several improvements made by Logback.

    • SLF4J – This library can act as a proxy to a number of underlying logging libraries, allowing the logging framework to be switched as necessary. This might actually be the best choice to avoid binding yourself to a specific logging library, although it is probably not as efficient as using the underlying API directly.

    As for the asynchronous writing requirement, if necessary it should be relatively easy to push all logging to a separate thread of your own.

    EDIT:

    Apparently, Log4J does have support for asynchronous logging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an extension for Firefox, and I need to log some data to
We need a logging framework that would allow us to do the following Log
I need to log information about how much RAM the user has. My first
I need to log some data when some functions are hit, both at the
I need to open a log file for writing. Trouble is, many things may
I have the following node I need to parse using XSLT 1.0 from xml
I have the following perl script that works locally given the input parameters. I
I am working on a Log4Net configuration that will log all unhandled exceptions. I
I have the following: <div class=rep_tb0 > <div class=rep_tr0 > <div class=rep_td0 id=ActivityLog>Activity Log</div>
We have a service in our project that runs and we need it to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.