Intermediate logging in IMDClient

Aperta
#107 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@amruthesht ci sta già lavorando.

Dal 25/7/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Python
Stelle
13
Fork
3
Merge medio
12g 14h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Becksteinlab/imdclient

Tutte le issue di Becksteinlab/imdclient

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.