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 6897871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:13:26+00:00 2026-05-27T07:13:26+00:00

We are using Log4J to writing log files in our batch applications. The log

  • 0

We are using Log4J to writing log files in our batch applications. The log files after a run are always as huge as several giga bytes. This makes it very difficult and time-consuming to open, read or find useful information from them even after they have been divided into smaller (e.g. 500 MB) ones (by using rolling appender).

I think one reason is that we always write long complete English sentences in all logging levels, because we believe that reading a log file should be like reading a story.

Do you have any best practices to deal with this problem? Is using abbreviations (such as ‘OK’ instead of ‘Successfully created …’) at least in DEBUG and TRACE levels a common usage?

  • 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-05-27T07:13:26+00:00Added an answer on May 27, 2026 at 7:13 am

    Write your log files as Comma-Separated-Values Text.

    There are a number of reasons why:

    1. You can open them in the newer versions of Excel, no matter how large they are (well, up to about a million rows/log entries).

    2. You can filter them by time, if you provide a time column

    3. You can search them.

    4. You can filter or sort them by type or severity (if you provide a column containing that information, i.e. Message, Warning, Error, Critical).

    With respect to the verbosity, you can provide two columns; a summary description and a detailed description. Excel allows you to hide or delete columns, so this allows users to slice and dice the files any way they want.

    In addition, CSV files are machine-readable, so they can potentially be run through a post-processing program for further analysis.

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

Sidebar

Related Questions

We are using Log4j in our project for logging. I want to log some
We're writing a custom log4j appender for our application. The appender should log its
I have the following logging problem with several Java applications using log4j for logging:
When using log4j, the Logger.log(Priority p, Object message) method is available and can be
I'm using log4j in an app I'm developing to eventually run inside Tomcat/JBoss, but
So we have our J2EE application using Log4j like this public class CustomerController {
I am using log4j to log my exceptions. I want to log whatever I
I am looking into writing my application's log files to a syslog server in
Using log4j to log specific events (DEBUG, ERROR, FATAL..) having specified in the properties
I am using log4j to log error and other system information. but come of

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.