@feature-hub/logger
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.8.0](https://github.com/sinnerschrader/feature-hub/compare/v2.7.0...v2.8.0) (2020-10-26) | ||
### Features | ||
* **all:** pass featureAppName as consumerName to Feature Service binder ([#589](https://github.com/sinnerschrader/feature-hub/issues/589)) ([44b019f](https://github.com/sinnerschrader/feature-hub/commit/44b019f)) | ||
# [2.7.0](https://github.com/sinnerschrader/feature-hub/compare/v2.6.0...v2.7.0) (2020-06-11) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ import { FeatureServiceBinder, FeatureServiceProviderDefinition, Logger, SharedFeatureService } from '@feature-hub/core'; | ||
} | ||
export declare type ConsumerLoggerCreator = (consumerId: string) => Logger; | ||
export declare type ConsumerLoggerCreator = (consumerId: string, consumerName?: string) => Logger; | ||
export declare function defineLogger(createConsumerLogger?: ConsumerLoggerCreator): FeatureServiceProviderDefinition<SharedLogger>; |
@@ -7,4 +7,4 @@ "use strict"; | ||
create: () => ({ | ||
'1.0.0': consumerId => ({ | ||
featureService: createConsumerLogger(consumerId) | ||
'1.0.0': (consumerId, consumerName) => ({ | ||
featureService: createConsumerLogger(consumerId, consumerName) | ||
}) | ||
@@ -11,0 +11,0 @@ }) |
@@ -6,3 +6,3 @@ import { FeatureServiceBinder, FeatureServiceProviderDefinition, Logger, SharedFeatureService } from '@feature-hub/core'; | ||
} | ||
export declare type ConsumerLoggerCreator = (consumerId: string) => Logger; | ||
export declare type ConsumerLoggerCreator = (consumerId: string, consumerName?: string) => Logger; | ||
export declare function defineLogger(createConsumerLogger?: ConsumerLoggerCreator): FeatureServiceProviderDefinition<SharedLogger>; |
@@ -5,4 +5,4 @@ export function defineLogger(createConsumerLogger = () => console) { | ||
create: () => ({ | ||
'1.0.0': consumerId => ({ | ||
featureService: createConsumerLogger(consumerId) | ||
'1.0.0': (consumerId, consumerName) => ({ | ||
featureService: createConsumerLogger(consumerId, consumerName) | ||
}) | ||
@@ -9,0 +9,0 @@ }) |
{ | ||
"name": "@feature-hub/logger", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "A Feature Service for providing a common logging integration to all Feature Hub consumers.", | ||
@@ -24,3 +24,3 @@ "homepage": "https://feature-hub.io/", | ||
"dependencies": { | ||
"@feature-hub/core": "^2.7.0" | ||
"@feature-hub/core": "^2.8.0" | ||
}, | ||
@@ -30,3 +30,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "bbfe0fb664d18c9f968b83abd107a0ae55678230" | ||
"gitHead": "35a90b49fa87d2f4d5f4dc02b5f4a697b7b75f52" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10246
Updated@feature-hub/core@^2.8.0