Skip to content

Feature request: be able to override logdev after creation #35

Description

@perlun

This could be a useful feature, especially in specs where you often want to silence the logging.

I looked briefly at the code in https://github.com/chef/mixlib-log/blob/master/lib/mixlib/log/logger.rb, and it seems to be pretty simple; it's just an attr_accessor or attr_writer that would need to be added.

Are you against it for philosophical reasons, or would you consider a PR that adds this? Or is there another suggested way to change the output device of a logger after it has been created?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions