Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp logging with RootLogHandler and new logger config #67

Merged
merged 9 commits into from
Sep 11, 2024

Conversation

MartinFoka
Copy link
Collaborator

Key Changes

  • Added RootLogHandler:
    Introduced a new handler to manage root-level logging, which also utilizes thread-specific queues for logs from tasks in frinx_conductor_wrapper.

  • Introduced LoggerSettings and LoggerConfig:
    Introduced classes that streamline the logger setup process, enhancing flexibility and maintainability.

  • Updated Workflow and Worker Examples:
    Created new examples to test and showcase the capabilities of the revamped logging configuration within the Test_workflow / 1 workflow.

  • Adjusted Main Code:
    Modified main.py in the example folder to integrate with the new logger setup.

MartinFoka and others added 8 commits September 5, 2024 18:33
- Implemented TaskLogHandler for thread-specific log queues
- Added LoggerSettings and LoggerConfig classes
- Refactored TaskLogHandler to RootLogHandler for improved clarity.
- Refined configuration settings for the logger.
- Added workflow and worker examples to demonstrate logging capabilities.
- Adjusted main to work with the new logger setup.
- env variable name: UNICONFIG_KEY_DELIMITER
- default value: %22
- add function: escape_uniconfig_uri_key
…to feature/logging-enhancements

# Conflicts:
#	poetry.lock
Copy link
Collaborator

@jaro0149 jaro0149 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks fine
but I haven't tested it yes - maybe can we merge it and try to bump versions in all workers and services and see what happens?

@jaro0149 jaro0149 added the enhancement New feature or request label Sep 10, 2024
@MartinFoka MartinFoka marked this pull request as ready for review September 11, 2024 14:03
@jaro0149 jaro0149 merged commit aead619 into main Sep 11, 2024
5 checks passed
@jaro0149 jaro0149 deleted the feature/logging-enhancements branch September 11, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants