Skip to content

Request: Ability to log to Logger #11

@sapieneptus

Description

@sapieneptus

HEY MIKKEL!!!

Request

I think the ability to supply a standard logger object to a CommandRunner invocation would allow for a useful abstraction. By that, I mean an object which responds to :info and :error. By default you could push everything to logger.info and we provide the split_output option, then stdout could go to logger.info and stderr can go to logger.error.

Motivation

We are currently using CommandRunner to do something secret and while the ability to log to a file is great (and I'm sure we could pipe the info around to get it into our logger), 100% of our logging needs to go through our logger object which ultimately sends the data to a backend service for aggregation. I realize there are workarounds but I think it'd be very convenient to be able to just set a logger when making an invocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions