Skip to content

cmd/oci-image-tool: use logrus to ease printing to stdout #14

@philips

Description

@philips

From @runcom on September 9, 2016 8:46

$SUBJECT - logrus have various and a nicer way of printing logs to stdout with the option to specify the log level (which can then be used to differentiate the validation level in a nicer way).
The current way of embedding stdout in the validation struct isn't as pretty as it would be by having a nicer logger like logrus.

I would also suggest to have a context (not necessary context.Context) object which can be used to embed system stuff like a logger - to be the first argument to function like descriptor.Validate(ctx, ...) so we extract the logger from there and print while validating. (Right now this isn't possible, and the logger should be explicitly passed to Validate changing its definition). @stevvooe wdyt?

@s-urbaniak wdyt?

/cc @vbatts @stevvooe @philips

Copied from original issue: opencontainers/image-spec#288

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions