A
A
andrkkk2019-05-17 09:37:39
Java
andrkkk, 2019-05-17 09:37:39

How to log thread activity to a file?

I am learning to write multi-threaded applications. We need everything that streams do to write to a file. If I understand correctly, you need to log all sorts of Sleep, Join, Start and so on. How can I do that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2019-05-17
@andrkkk

This is called "logging". Take the log4j library for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question