Use tempfile lib for log file
The fixed name for the log file causes issues for multiple users.  The
tempfile library will create temporary files that don't conflict.
import logging
+import tempfile
logger = logging.getLogger("LanguageClient")
-fileHandler = logging.FileHandler(filename="/tmp/LanguageClient.log")
+with tempfile.NamedTemporaryFile(
+ prefix="LanguageClient-",
+ suffix=".log", delete=False) as tmp:
+ tmpname = tmp.name
+fileHandler = logging.FileHandler(filename=tmpname)
fileHandler.setFormatter(
logging.Formatter(
"%(asctime)s %(levelname)-8s %(message)s",
