Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • F FEDOT
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 87
    • Issues 87
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ITMO-NSS-team
  • FEDOT
  • Issues
  • #809

Closed
Open
Created Aug 04, 2022 by Elizaveta Lutsenko@LizLutsenkoOwner

Initialization of singleton Logger can lead to confusion

Created by: gkirgizov

Because Logger is singleton, the initialization is called only once. But if someone tries to call Log with custom file after someone somewhere at some point already called init with default arguments -- end user wouldn't know that their arguments (log file, logging level etc.) were ignored. Tests were an example of such situation, when some test initializes the logger, while subsequent tests also try doing this with other arguments without success.

It's better to either separate logging settings (e.g. log file) from singleton init, or at least provide some warnings about ignored init arguments on subsequent calls (if they differ from actual arguments). Example with logger run_log_example and test_logger.py should be reviewed after this.

Assignee
Assign to
Time tracking