Hi Cschulz,

I don't get why you want this complexity. If you want to have separate logs 
for certain parts of your app, you can just provide your loginservice at 
the level you need it.

@component({
    ....
    provide: [myLogService]
})

if you do this, that component (and everything under it) will get's its own 
instance of the logging service. you can then do something like this in the 
class of that component:
class xxxyyy {
    constructor(private myLog: myLogService) {
        myLog.contextname = 'xxxyyy'
    }
}

and use the contextname in your logging service to differentiate

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