0.0.14 • Published 3 years ago

@rehansf/logger v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
3 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

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago