ngx-log
Angular Log Service Library, automatically hide console log on Production
Installation
To install this library, run:
$ npm install ngx-log --save
Usage
Functions:
infortext: string, param?: any, force?: booleanwarntext: string, param?: any, force?: booleanerrortext: string, param?: any, force?: booleanlogtext: string, param?: any, force?: boolean
From your Angular AppModule
:
LogModule.forRootisProduction: boolean;
Sample import snippet
;; ; // Import ngx-log library;
Once the library is imported, you can use it in your components, directives and pipes of your Angular application:
;
License
MIT © Nguyen Tran