Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
feat(@angular-devkit/schematics): logger of new context is child of p…
Browse files Browse the repository at this point in the history
…arent
  • Loading branch information
hansl committed Sep 26, 2017
1 parent ab5201a commit 1a8e4a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/angular_devkit/schematics/src/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export class SchematicEngine<CollectionT extends object, SchematicT extends obje
return {
debug: parent && parent.debug || false,
engine: this,
logger: (parent && parent.logger) || new NullLogger(),
logger: (parent && parent.logger && parent.logger.createChild(schematic.description.name))
|| new NullLogger(),
schematic,
strategy: (parent && parent.strategy !== undefined)
? parent.strategy : this.defaultMergeStrategy,
Expand Down

0 comments on commit 1a8e4a2

Please sign in to comment.