prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Logging overwrite less sweeping
  To be removed, once it is done: Please add the appropriate label to this ticket, e.g. feature or enhancement.
  
  **Is your feature/enhancement request related to a problem? Please describe.**
  When using flair in other applications, the fact that it disables existing logs in `__init__.py` can be detrimental. For instance when wrapping it up as a component in a tool like rasa_nlu, importing flair overrides all logging except its own, breaking functionality in rasa_nlu.
  
  This is the [line that does so ](https://github.com/zalandoresearch/flair/blob/c2bb0d8776f25493a5b994dcd89a96f71ac175b8/flair/__init__.py#L13) and it was done on purpose to disable BERT logging in #282 .
  
  **Describe the solution you'd like**
  Ideally, the problem of disabling logging from certain known dependencies should be much more limited in scope. Importing flair as a package shouldn't disable all the other loggers. At a minimum, perhaps the logging could only *optionally* disable all existing logs
  
  
  </issue>
  <code>
  [start of flair/__init__.py]
  1 import torch
  2 
  3 from . import data
  4 from . import models
  5 from . import visual
  6 from . import trainers
  7 
  8 import logging.config
  9 
  10 
  11 logging.config.dictConfig({
  12     'version': 1,
  13     'disable_existing_loggers': True,
  14     'formatters': {
  15         'standard': {
  16             'format': '%(asctime)-15s %(message)s'
  17         },
  18     },
  19     'handlers': {
  20         'console': {
  21             'level': 'INFO',
  22             'class': 'logging.StreamHandler',
  23             'formatter': 'standard',
  24             'stream': 'ext://sys.stdout'
  25         },
  26     },
  27     'loggers': {
  28         'flair': {
  29             'handlers': ['console'],
  30             'level': 'INFO',
  31             'propagate': False
  32         }
  33     },
  34     'root': {
  35         'handlers': ['console'],
  36         'level': 'WARNING'
  37     }
  38 })
  39 
  40 logger = logging.getLogger('flair')
  41 
  42 
  43 device = None
  44 if torch.cuda.is_available():
  45     device = torch.device('cuda:0')
  46 else:
  47     device = torch.device('cpu')
  48
  [end of flair/__init__.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/flair/__init__.py b/flair/__init__.py
  --- a/flair/__init__.py
  +++ b/flair/__init__.py
  @@ -10,7 +10,7 @@
   
   logging.config.dictConfig({
       'version': 1,
  -    'disable_existing_loggers': True,
  +    'disable_existing_loggers': False,
       'formatters': {
           'standard': {
               'format': '%(asctime)-15s %(message)s'
  
verification_info: {"golden_diff": "diff --git a/flair/__init__.py b/flair/__init__.py\n--- a/flair/__init__.py\n+++ b/flair/__init__.py\n@@ -10,7 +10,7 @@\n \n logging.config.dictConfig({\n     'version': 1,\n-    'disable_existing_loggers': True,\n+    'disable_existing_loggers': False,\n     'formatters': {\n         'standard': {\n             'format': '%(asctime)-15s %(message)s'\n", "issue": "Logging overwrite less sweeping\nTo be removed, once it is done: Please add the appropriate label to this ticket, e.g. feature or enhancement.\r\n\r\n**Is your feature/enhancement request related to a problem? Please describe.**\r\nWhen using flair in other applications, the fact that it disables existing logs in `__init__.py` can be detrimental. For instance when wrapping it up as a component in a tool like rasa_nlu, importing flair overrides all logging except its own, breaking functionality in rasa_nlu.\r\n\r\nThis is the [line that does so ](https://github.com/zalandoresearch/flair/blob/c2bb0d8776f25493a5b994dcd89a96f71ac175b8/flair/__init__.py#L13) and it was done on purpose to disable BERT logging in #282 .\r\n\r\n**Describe the solution you'd like**\r\nIdeally, the problem of disabling logging from certain known dependencies should be much more limited in scope. Importing flair as a package shouldn't disable all the other loggers. At a minimum, perhaps the logging could only *optionally* disable all existing logs\r\n\n", "before_files": [{"content": "import torch\n\nfrom . import data\nfrom . import models\nfrom . import visual\nfrom . import trainers\n\nimport logging.config\n\n\nlogging.config.dictConfig({\n    'version': 1,\n    'disable_existing_loggers': True,\n    'formatters': {\n        'standard': {\n            'format': '%(asctime)-15s %(message)s'\n        },\n    },\n    'handlers': {\n        'console': {\n            'level': 'INFO',\n            'class': 'logging.StreamHandler',\n            'formatter': 'standard',\n            'stream': 'ext://sys.stdout'\n        },\n    },\n    'loggers': {\n        'flair': {\n            'handlers': ['console'],\n            'level': 'INFO',\n            'propagate': False\n        }\n    },\n    'root': {\n        'handlers': ['console'],\n        'level': 'WARNING'\n    }\n})\n\nlogger = logging.getLogger('flair')\n\n\ndevice = None\nif torch.cuda.is_available():\n    device = torch.device('cuda:0')\nelse:\n    device = torch.device('cpu')\n", "path": "flair/__init__.py"}]}