thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
175 stars 98 forks source link

Uniquely identify which Tor OP instance a log statement came from #20

Open yaronyg opened 10 years ago

yaronyg commented 10 years ago

When we run multiple Tor OP instances at once it's all but impossible to read the logs because you can't tell which log statement came from which OP. There are a couple of things we can do.

In general each Tor OP should be running in its own unique working directory so we could prefix with the working directory. But that's likely to make the log statements really big.

Another alternative is to generate some kind of hash off the working directory and then publish a log statement with a mapping of the hash to the directory.

Another alternative is to just let the user submit a log name when they create a Tor OP.