import logging
import tempfile

logger = logging.getLogger("LanguageClient")
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",
        "%H:%M:%S"))
logger.addHandler(fileHandler)
logger.setLevel(logging.WARN)

import logging

logger = logging.getLogger("LanguageClient")
fileHandler = logging.FileHandler(filename="/tmp/LanguageClient.log")
fileHandler.setFormatter(
    logging.Formatter(
        "%(asctime)s %(levelname)-8s %(message)s",
        "%H:%M:%S"))
logger.addHandler(fileHandler)
logger.setLevel(logging.WARN)

Revert "Use tempfile lib for log file"
Revert "Use tempfile lib for log file"

This reverts commit 6e8f35b83fc563c8349cb3be040c61a0588ca745.

The commit caused severer issue than it fixed. In case one need to check
the content of log file, there is no way to tell where the log file
location/name is.

  import logging
- import tempfile
  
  logger = logging.getLogger("LanguageClient")
- with tempfile.NamedTemporaryFile(
-         prefix="LanguageClient-",
-         suffix=".log", delete=False) as tmp:
-     tmpname = tmp.name
- fileHandler = logging.FileHandler(filename=tmpname)
+ fileHandler = logging.FileHandler(filename="/tmp/LanguageClient.log")
  fileHandler.setFormatter(
      logging.Formatter(
          "%(asctime)s %(levelname)-8s %(message)s",
          "%H:%M:%S"))
  logger.addHandler(fileHandler)
  logger.setLevel(logging.WARN)
  
Revert "Use tempfile lib for log file"
## Code Before:
import logging
import tempfile

logger = logging.getLogger("LanguageClient")
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",
        "%H:%M:%S"))
logger.addHandler(fileHandler)
logger.setLevel(logging.WARN)

## Instruction:
Revert "Use tempfile lib for log file"
## Code After:
import logging

logger = logging.getLogger("LanguageClient")
fileHandler = logging.FileHandler(filename="/tmp/LanguageClient.log")
fileHandler.setFormatter(
    logging.Formatter(
        "%(asctime)s %(levelname)-8s %(message)s",
        "%H:%M:%S"))
logger.addHandler(fileHandler)
logger.setLevel(logging.WARN)
