prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `flair/__init__.py`
  Content:
  ```
  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 FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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"}], "after_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': False,\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"}]}