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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:33:39+00:00 2026-05-31T13:33:39+00:00

Do we have any Debug viewer free tool for Java that we use for

  • 0

Do we have any Debug viewer free tool for Java that we use for .net (microsoft)?

If we write Debug.Writeline(“Hello World”); that will print line in DebugView v4.78 tool.

I am trying to find that Java code also should print. Any tool available for java?

  • 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-31T13:33:39+00:00Added an answer on May 31, 2026 at 1:33 pm

    Discover log4j! Log4J is a logging library for Java, it will provide you with an ability to configure where to save log statements via different loggers.

    For example, you can configure log4j to store all your log statements done via general-purpose logger into file normal.log, and log statements done via dedicated logger into file very-special-errors.log. If you want real-time monitoring and you on Unix, just say tail -f very-special-errors.log.

    Here’s sample log4j.properties file for that purpose:

    log4j.rootLogger=DEBUG, R
    log4j.appender.A1=org.apache.log4j.ConsoleAppender
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=normal.log
    
    log4j.appender.R.MaxFileSize=100KB
    # Keep one backup file
    log4j.appender.R.MaxBackupIndex=1
    
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
    
    log4j.logger.specialLogger=ERROR, errorAppender
    log4j.additivity.specialLogger=false
    log4j.appender.errorAppender=org.apache.log4j.RollingFileAppender
    log4j.appender.errorAppender.File=very-special-errors.log
    
    log4j.appender.errorAppender.MaxFileSize=100KB
    # Keep one backup file
    log4j.appender.errorAppender.MaxBackupIndex=1
    
    log4j.appender.errorAppender.layout=org.apache.log4j.PatternLayout
    log4j.appender.errorAppender.layout.ConversionPattern=%p %t %c - %m%n
    

    and here’s sample Java code which uses this setup

    import org.apache.log4j.Logger;
    import org.apache.log4j.PropertyConfigurator;
    
    public class Main {
        private static final Logger normalLog = Logger.getLogger("rootLogger");
        private static final Logger specialLogger = Logger.getLogger("specialLogger");
    
        public static void main(String[] args) {
            PropertyConfigurator.configure("log4j.properties");
            normalLog.info("Normal info");
            specialLogger.info("Special info -- won't be logged due to min logging level for specialLogger");
            specialLogger.error("Special error -- will be logged");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python list comprehensions are nice, but near impossible to debug. You guys have any
Have any bridge libraries been developed for PHP that provide access to the jQuery
I have any ASP.NET control. I want the HTML string how to do I
Anyone have any experience creating a modal dialog box using AJAX and ASP.NET MVC?
Anyone have any experience using the Microsoft Configuration Management Application Block? This is an
I have an app that I have to debug. It is C++ on Windows
Anyone have any good urls for templates or diagram examples in Visio 2007 to
Anyone have any success or failure running Jira on a VM? I am setting
anyone have any experience using this? if so, is it worth while?
Anyone have any idea how to get the value of Language for Non-Unicode Programs

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.