I have a log class that has several static methods that help write information about my program.
My problem is that I have 2 threads and both send requests to my log class to record information.
I would like my log class to show which threads are logging strings.
What to do to achieve this functionality?
My code is basically like this:
public class Log { public static void log ( String tag , Object message ) { String lineToPrint = "";
source share