Skip to content

Intermediate logging in IMDClient #107

@amruthesht

Description

@amruthesht

Feature request

It would be useful for the user to have information on pauses/resumes (and timestamps) being logged without having to use DEBUG level extensive logging which slows the client/server setup.

Proposed solution##

Possible solution --

import logging

STATUS_LEVEL_NUM = 25
logging.addLevelName(STATUS_LEVEL_NUM, "STATUS")

def status(self, message, *args, **kwargs):
    if self.isEnabledFor(STATUS_LEVEL_NUM):
        self._log(STATUS_LEVEL_NUM, message, args, **kwargs)

logging.Logger.status = status

The current logger format will also capture the time these log calls were made thus recording the time for which client requested the MD engine to pause.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions