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?
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 filevery-special-errors.log. If you want real-time monitoring and you on Unix, just saytail -f very-special-errors.log.Here’s sample
log4j.propertiesfile for that purpose:and here’s sample Java code which uses this setup