Create a uniform way to initialize module level loggers, add auto-logging for managers creation/deletion etc.

Aperta
#112 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Read the issue’s examples of logger creation, manager lifecycle logs, and configuration handling to understand the proposed scope. The payload names no files, tests, or entry points, so first locate these patterns in the repository and assess whether a shared cavise class with decorators and runtime checks can cover them. Done would require agreeing on the design and its scope before implementation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue logging

We have a lot of common code around this repo, especially:

  1. loggers' creation in a form logger = ..., that ideally should be bound to classes, not modules.
  2. common logs, like "X was created, Y was removed" - that may be automatically generated via code wrappers (decorators)
  3. here I'd also mention configs - we have dicts with random filling, they are modified there, keys are extracted and joined elsewhere... The situation has become better since we started running static typing with TypedDicts, but runtime validations may be welcomed as common code, too. (also OmegaConf may be gone, if such code as ever to be introduced)

My proposition here is developing a cavise class with decorators, like SimObject for example, to fix those issues. That module may also provide configuration helpers and runtime checks for data.

Lingua principale
Python
Stelle
11
Fork
11
Merge medio
1g 16h
PR unite (30g)
12

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 CAVISE/OpenCDA

Tutte le issue di CAVISE/OpenCDA

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.