0.0.14 • Published 5 years ago

@rehansf/logger v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

Loopback Logger

LoopBack

Installation

Install LoggerComponent using npm;

$ npm install @rehansf/logger

Basic Use

Configure and load LoggerComponent in the application constructor as shown below.

import {LoggerComponent, LoggerComponentOptions, DEFAULT_LOGGER_OPTIONS} from '@rehansf/logger';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: LoggerComponentOptions = DEFAULT_LOGGER_OPTIONS;
    this.configure(LoggerComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(LoggerComponent);
    // ...
  }
  // ...
}

How to use it with postgres

Import model in index.ts and export it.

export * from '@rehansf/logger/dist/models';
0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.3

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.6

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago