prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  No handlers could be found for logger "pip.vcs.git"
  Looks like logging is not totally set up. I get this when `pip-compile` wit VCS links:
  
  ```
  No handlers could be found for logger "pip.vcs.git"
  ```
  
  
  </issue>
  <code>
  [start of piptools/logging.py]
  1 # coding: utf-8
  2 from __future__ import absolute_import, division, print_function, unicode_literals
  3 
  4 from . import click
  5 
  6 
  7 class LogContext(object):
  8     def __init__(self, verbosity=0):
  9         self.verbosity = verbosity
  10 
  11     def log(self, *args, **kwargs):
  12         kwargs.setdefault("err", True)
  13         click.secho(*args, **kwargs)
  14 
  15     def debug(self, *args, **kwargs):
  16         if self.verbosity >= 1:
  17             self.log(*args, **kwargs)
  18 
  19     def info(self, *args, **kwargs):
  20         if self.verbosity >= 0:
  21             self.log(*args, **kwargs)
  22 
  23     def warning(self, *args, **kwargs):
  24         kwargs.setdefault("fg", "yellow")
  25         self.log(*args, **kwargs)
  26 
  27     def error(self, *args, **kwargs):
  28         kwargs.setdefault("fg", "red")
  29         self.log(*args, **kwargs)
  30 
  31 
  32 log = LogContext()
  33
  [end of piptools/logging.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/piptools/logging.py b/piptools/logging.py
  --- a/piptools/logging.py
  +++ b/piptools/logging.py
  @@ -1,8 +1,14 @@
   # coding: utf-8
   from __future__ import absolute_import, division, print_function, unicode_literals
   
  +import logging
  +
   from . import click
   
  +# Initialise the builtin logging module for other component using it.
  +# Ex: pip
  +logging.basicConfig()
  +
   
   class LogContext(object):
       def __init__(self, verbosity=0):
  
verification_info: {"golden_diff": "diff --git a/piptools/logging.py b/piptools/logging.py\n--- a/piptools/logging.py\n+++ b/piptools/logging.py\n@@ -1,8 +1,14 @@\n # coding: utf-8\n from __future__ import absolute_import, division, print_function, unicode_literals\n \n+import logging\n+\n from . import click\n \n+# Initialise the builtin logging module for other component using it.\n+# Ex: pip\n+logging.basicConfig()\n+\n \n class LogContext(object):\n     def __init__(self, verbosity=0):\n", "issue": "No handlers could be found for logger \"pip.vcs.git\"\nLooks like logging is not totally set up. I get this when `pip-compile` wit VCS links:\n\n```\nNo handlers could be found for logger \"pip.vcs.git\"\n```\n\n", "before_files": [{"content": "# coding: utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom . import click\n\n\nclass LogContext(object):\n    def __init__(self, verbosity=0):\n        self.verbosity = verbosity\n\n    def log(self, *args, **kwargs):\n        kwargs.setdefault(\"err\", True)\n        click.secho(*args, **kwargs)\n\n    def debug(self, *args, **kwargs):\n        if self.verbosity >= 1:\n            self.log(*args, **kwargs)\n\n    def info(self, *args, **kwargs):\n        if self.verbosity >= 0:\n            self.log(*args, **kwargs)\n\n    def warning(self, *args, **kwargs):\n        kwargs.setdefault(\"fg\", \"yellow\")\n        self.log(*args, **kwargs)\n\n    def error(self, *args, **kwargs):\n        kwargs.setdefault(\"fg\", \"red\")\n        self.log(*args, **kwargs)\n\n\nlog = LogContext()\n", "path": "piptools/logging.py"}]}