swiftybeaver-provider
swiftybeaver-provider copied to clipboard
Log handler is being recursively added.
Using as per steps in Readme of this repo.
This is being called multiple times: SwiftyBeaverLogger
public init(destinations: [BaseDestination]) {
for destination in destinations {
swiftybeaver.addDestination(destination)
}
}
This seems like the correct behavior. You initialize the logger with an array of destinations, which it adds all of to SwiftyBeaver. You mentioned the README example, which also shows proper usage of this, a single initialization with 2 destinations:
SwiftyBeaverLogger(destinations: [console, fileDestination])