This package has been deprecated

Author message:

Package no longer supported. Contact support@npmjs.com for more info.

endgegner-trace
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

endgegner-trace

Installation

To install this module, run:

$ npm install '../endgegner-trace/dist/endgegner-trace<current_version>.tgz'

Consuming the module

you can import endgegner-trace in any Angular application by running:

$ npm install endgegner-trace

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
 
import { AppComponent } from './app.component';
 
// Import the module
import { LoggerModule } from 'endgegner-trace';
 
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
 
    // Specify your library as an import
    LoggerModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once the module is imported, you can use its components, directives and pipes in your Angular application:

 
  // *.component.ts
  constructor(private logServiceLogService) {
    // specify a namespace for the logs
    this.logService.namespace = 'LoginComponent';
 
    // example of a log entry
    this.logService.log( 'constructor LoginComponent');
 }

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Michael Winkler

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i endgegner-trace

Weekly Downloads

2

Version

0.1.3

License

none

Last publish

Collaborators

  • npm