Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

log: introduce Logger interface #218

Merged
merged 2 commits into from
Nov 2, 2016
Merged

log: introduce Logger interface #218

merged 2 commits into from
Nov 2, 2016

Conversation

s-urbaniak
Copy link

This introduces a new Logger interface to allow swappable debug, and
info loggers for consumers of the library.

These loggers are compatible with the "log" stdlib logger.

This PR also does a refactoring/cleanup in preparation for #216.

Fixes #136

@s-urbaniak
Copy link
Author

I did this in the plane, so let's see, if I pass the CI.

@euank
Copy link
Contributor

euank commented Nov 1, 2016

LGTM, thanks for the refactoring!

@jonboulle
Copy link
Contributor

Needs a rebase

Sergiusz Urbaniak added 2 commits November 2, 2016 12:40
The type common.ParsedDockerURL is aliased to types.ParsedDockerURL
which is unnecessary. This removes the alias, and moves the type from
the internal `types` package to the `common` package.

Additionally common.ParseDockerURL is only delegating to
types.ParseDockerURL which is unnecessary. This moves the implementation
from the internal `types` package to the `common` package.
This introduces a new Logger interface to allow swappable `debug`, and
`info` loggers for consumers of the library.

These loggers are compatible with the "log" stdlib logger.

Fixes appc#136
@lucab
Copy link
Contributor

lucab commented Nov 2, 2016

Rebased, LGTM, merging. And thanks :)

@lucab lucab merged commit 658703d into appc:master Nov 2, 2016
@lucab lucab mentioned this pull request Nov 8, 2016
@lucab lucab added this to the 0.14.0 milestone Nov 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants