medcat.utils.usage_monitoring
Classes:
Attributes:
DEFAULT_LOGS_MACOS
module-attribute
DEFAULT_LOGS_MACOS = expanduser('~/Library/Application Support/medcat/logs/')
DEFAULT_LOGS_WINDOWS
module-attribute
DEFAULT_LOGS_WINDOWS = join(get('APPDATA', 'NOT WINDOWS'), 'medcat', 'logs')
LOGS_ENV
module-attribute
LOGS_ENV = 'MEDCAT_USAGE_LOGS'
LOGS_LOC_ENV
module-attribute
LOGS_LOC_ENV = 'MEDCAT_USAGE_LOGS_LOCATION'
UsageMonitor
UsageMonitor(model_hash: Union[Callable[[], str], str], config: UsageMonitor)
Methods:
Attributes:
-
config– -
log_buffer(list[str]) – -
log_file– -
model_hash(str) – -
should_monitor(bool) –
Source code in medcat-v2/medcat/utils/usage_monitoring.py
26 27 28 29 30 31 32 | |
config
instance-attribute
config = config
log_file
property
log_file
log_inference
Source code in medcat-v2/medcat/utils/usage_monitoring.py
92 93 94 95 96 97 98 99 100 101 | |