Skip to content

Commit e280a6f

Browse files
authored
Merge pull request #7 from cabify/fix-default-factory-type
Make `DefaultFactory` of type `LoggerFactory`
2 parents aca7d35 + 387d119 commit e280a6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
### Security
2424
- Nothing
2525

26+
## [1.5.1] - 2019-07-30
27+
### Changed
28+
- Make `DefaultFactory` of type `LoggerFactory` so it accepts other implementations
29+
2630
## [1.5.0] - 2019-07-30
2731
### Added
2832
- `LoggerFactory` interface abstracting `Factory` struct

factory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
// DefaultFactory is the factory used to create new loggers
8-
var DefaultFactory Factory = NewFactory()
8+
var DefaultFactory LoggerFactory = NewFactory()
99

1010
// LoggerFactory creates Logger instances
1111
type LoggerFactory interface {

0 commit comments

Comments
 (0)