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

  • Home
  • SEARCH
  • 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 8366223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:51:45+00:00 2026-06-09T12:51:45+00:00

When I do log in java. For every log information , It will begin

  • 0

When I do log in java. For every log information , It will begin with a title line like this,

Aug 9, 2012 11:19:13 AM com.aures.IBDownload.ContractHistoryDataDownloader logActivity

com.aures.IBDownload.ContractHistoryDataDownloader is the java class name, logActivity is the log name

The text after time is only showed in console. In log file, It’s just time.

Now I want to remove the txt after the time in console as well, because It is so long and repeats every time, so annoying.

Any ideas,Thanks!!

  • 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-09T12:51:47+00:00Added an answer on June 9, 2026 at 12:51 pm

    If you’re using log4j, find your log4j.xml or log4j.properties and change the log format. There’ll probably be a character after the date & class (from memory it’s [d] [c] or similar) which will be representing the log file name. Just remove that character & the brackets around it, and you should be right. 🙂

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

Sidebar

Related Questions

For debugging purposes, I would like my app to log to a java.util.logging.SocketHandler. Here's,
This is my FragmentListArraySupport.java package com.test.methods; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.app.ListFragment; import android.util.Log;
I'd like to log or record every time I start an application to gain
How may I log every HTTP request on Java EE application (path, timestamp, username(if
Every class that wants to use java.util.logging generally needs to declare a logger like
How can I write caller location information (Java source file and line), in a
When using java.util.logging, the log level for a specific class (i.e. for a child
I have a java application that people can log into (and do various things
I am trying to add a custom log handler to my java application. I
I'm trying to write a Java class to log in to a certain website.

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.