warlord902 9 Junior Poster

I configured a logger namely "My Log" in my main class which can write errors in a log file named mylog.txt
Now I want to use this same file for all packages and classes there in. I tried to put this in other class

Logger.getLogger("My Log") //Did nothing

Now what should I do to get out of this problem?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.