angular2-logger icon indicating copy to clipboard operation
angular2-logger copied to clipboard

Is it possible to specify a log level per component

Open no-more opened this issue 8 years ago • 2 comments

Hi,

Let's say I have 10 components, each one is using this great logger, with lots of debugging logs defined. Now I have completed 5 of those components in which I don't needs those debug logs anymore, but I don't want to remove them from the code because I could need them again later. My question is : is there any "simple" way to define a different log level for each component, if none is provided it should be the global log level.

Thanks.

no-more avatar Jan 03 '17 13:01 no-more

Hi @no-more ,

Sadly not right now, it needs the "Support named loggers" part. I haven't got to it because while trying to maintain the same architecture log4j2 has I noticed it was overcomplicated for web clients, i'll try to settle down in the right architecture soon and let you know.

langley-agm avatar Jan 03 '17 15:01 langley-agm

Thanks a lot.

no-more avatar Jan 05 '17 04:01 no-more