Search code examples
eclipseconsolemessage

write a log message in eclipse console


I know this has probably been asked already, but I still can't find a solution. I am testing a java class, and I would like to print a message in the Eclipse console to debbug my testing class (I've got errors). I am currently trying this :

Log.debug("Before everything00000000000000000000000");

But it's not working...

How can I do this ? Thank you


Solution

  • To write any message in console, simply use :

    System.out.println(String msg)
    

    Logger java class can also be used.