Beispiel #1
0
def setup_metlog(config_dict):
    """
    Instantiate the Metlog client and set up the client wrapper.

    :param config_dict: Dictionary object containing the metlog client
                        configuration.
    """
    CLIENT_WRAPPER.activate(config_dict)
 def setUp(self):
     self.orig_client = CLIENT_WRAPPER.client
     client_config = {
         'sender_class': 'metlog.senders.DebugCaptureSender',
         }
     CLIENT_WRAPPER.activate(client_config)
Beispiel #3
0
def teardown_metlog():
    """
    Reset the client wrapper. Usually only needed for tests.
    """
    CLIENT_WRAPPER.reset()