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
  • Merge requests
  • !710

Merged
Created Jun 08, 2022 by Elizaveta Lutsenko@LizLutsenkoOwner

622 logger as singleton

  • Overview 62
  • Commits 17
  • Changes 101

Created by: maypink

Now Log is a sington. Logs are always written to the same file with which the Log was initialized for the first time. It is possible to write logs on behalf of any class (most cases)

self.log = default_log(self.__class__.__name__)

or behalf of any other name using LoggerAdapter. Redefinition of message, info and etc methods at the logger level has been removed as it makes no sense compared to similar methods from the logging. So in FEDOT message was replaced with info and ext_debug with debug. Also the verbosity level now is the same as in the logging. Multiprocessing is not implemented within this pull request.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 622-logger-as-singleton