Beispiel #1
0
    def test_get_r_config_file(self):
        import r_index_logging
        r_index_logging.clear_log_entries()

        r_index_logging.log(__file__, {'f1': 'v1'})

        log_entries = r_index_logging.get_log_entries()

        self.assertEqual(len(log_entries), 1)
        self.assertTrue('f1=\"v1\"' in log_entries[0])
Beispiel #2
0
    def test_get_r_config_file(self):
        import r_index_logging
        r_index_logging.clear_log_entries()

        r_index_logging.log(__file__, {
            'f1': 'v1'
        })

        log_entries = r_index_logging.get_log_entries()

        self.assertEqual(len(log_entries), 1)
        self.assertTrue('f1=\"v1\"' in log_entries[0])
Beispiel #3
0
def log(fields):
    r_index_logging.log(__file__, fields)