This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
How do i create a logfile that can be accessed from different classes. I only want to use one logfile which will be open while the application i make is running. It will only close when i close my application. I have many classes in different files. What can i do to make the Log class a public accessible class to all the others.
You could apply the Singleton pattern for the Logger class (all code would use Logger.getInstance(), and get a reference to the same Logger instance). This Logger class should be able to handle input from different threads at once, to avoid intermixed output in the file. Hope this helps. Regards, G�nther. http://www.javacoding.net