-
Notifications
You must be signed in to change notification settings - Fork 85
Description
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