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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:36:16+00:00 2026-06-18T01:36:16+00:00

I am writing java code and would like to use dbgview (and log4j if

  • 0

I am writing java code and would like to use dbgview (and log4j if possible). By searching the documentation of log4j it seems that unlike log4net, log4j does not support the OutputDebugStringAppender which redirect output to what dbgview listens to.

How can one create a log file that dbgview can parse?
How can one send string to the debug stream from java?
Is there any debugview alternative for java?

I am using eclipse, Windows 7 and latest log4j jar.

  • 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-18T01:36:17+00:00Added an answer on June 18, 2026 at 1:36 am

    Java does not have a native functionality to send over debug prints to Windows debug output.

    However you can easily do it by importing the Windows OutputDebugString function using JNA. It will break any multi-platform functionality (you will only be able to run on windows) but it will work.

    You can do something like this :

    import com.sun.jna.Library;
    import com.sun.jna.Native;
    
    public interface Kernel32 extends Library
    {
        public void OutputDebugStringA(String Text);
    }
    

    When calling OutputDebugString you need to do this :

     Kernel32 lib = (Kernel32) Native.loadLibrary(“kernel32″, Kernel32.class);
     lib.OutputDebugStringA(message);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a program in Java where I would like to use HashSet
I am writing some Java code that authenticates to Active Directory using SASL GSSAPI.
I'm writing some Java code that deals with Chinese characters, and I got some
I'm writing some java code that's supposed to parse csv files with different column
Sometimes while writing Java in Eclipse, I write code that generates warnings. A common
I'm writing a Groovy script which uses third party java code that I can't
I am writing a piece of code that would populate a mongoDB collection when
A little context: I would like to separate the Java application I'm writing into
I'm writing some Scala code which uses the Apache POI API. I would like
I'm currently developing a GUI for a Java-application that I've created. I would like

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.