MCPcopy Create free account
hub / github.com/Tencent/MMKV / logger

Function logger

Python/demo.py:313–319  ·  view source on GitHub ↗
(log_level, file, line, function, message)

Source from the content-addressed store, hash-verified

311 functional_test_imp(kv, True)
312
313def logger(log_level, file, line, function, message):
314 level = {mmkv.MMKVLogLevel.NoLog: 'N',
315 mmkv.MMKVLogLevel.Debug: 'D',
316 mmkv.MMKVLogLevel.Info: 'I',
317 mmkv.MMKVLogLevel.Warning: 'W',
318 mmkv.MMKVLogLevel.Error: 'E'}
319 print('r-[{0}] <{1}:{2}:{3}> {4}'.format(level[log_level], file, line, function, message))
320
321
322def error_handler(mmap_id, error_type):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected