Skip to content

Commit

Permalink
Merge pull request #7 from cabify/fix-default-factory-type
Browse files Browse the repository at this point in the history
Make `DefaultFactory` of type `LoggerFactory`
  • Loading branch information
joelmarty authored Jul 30, 2019
2 parents aca7d35 + 387d119 commit e280a6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security
- Nothing

## [1.5.1] - 2019-07-30
### Changed
- Make `DefaultFactory` of type `LoggerFactory` so it accepts other implementations

## [1.5.0] - 2019-07-30
### Added
- `LoggerFactory` interface abstracting `Factory` struct
Expand Down
2 changes: 1 addition & 1 deletion factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

// DefaultFactory is the factory used to create new loggers
var DefaultFactory Factory = NewFactory()
var DefaultFactory LoggerFactory = NewFactory()

// LoggerFactory creates Logger instances
type LoggerFactory interface {
Expand Down

0 comments on commit e280a6f

Please sign in to comment.