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

[FEAT] Specify logger within SettingsCreator #2583

Open
will-holley opened this issue Jan 14, 2025 · 1 comment
Open

[FEAT] Specify logger within SettingsCreator #2583

will-holley opened this issue Jan 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@will-holley
Copy link

Is your proposal related to a problem?

More ergonomics than problem.

Describe the solution you'd like

SettingsCreator to support a logger argument with the signature:

logger: logging.Logger = logging.getLogger(__name__)

Calls to module-scoped logger instances would be replaced.

Describe alternatives you've considered

Monkey patching each module that I'm calling the functions of, for example:

import logging
from splink.internals import linker as splink_linker_module

class MyLogger(logging.Logger):
  pass

splink_linker_module.logger = MyLogger()

Additional context

Happy to take this up.

@will-holley will-holley added the enhancement New feature or request label Jan 14, 2025
@will-holley will-holley changed the title [FEAT] Specify logger within SettersCreator [FEAT] Specify logger within SettingsCreator Jan 14, 2025
@RobinL
Copy link
Member

RobinL commented Jan 14, 2025

Thanks for raising this. Not sure I totally follow what you're after. Can you achieve the same thing by setting set_up_basic_logging to False and then configuring logging how you want?

set_up_basic_logging: bool = True,

if set_up_basic_logging:

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

No branches or pull requests

2 participants