Just use the logging as you are used to, it will keep the 'state' inside 
the component 'chain' 
I don't know how you want to diff the output of your log, but as in my 
example, you can do something like

class myLogService() {
   private _desk = "default";
   ...
   set desc(desc:string) {this._desc = desc}

   log(..args) {console.log(this._desc,...args)}
   ...
}

then, in the component you use to provide an instance:
class xxxyyy {
    constructor(private myLog: myLogService) {
        myLog.desc= 'xxxyyy'
    }
}

and then use myLogService.log(xxx) from there on.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to