refactor: specify index exports
This commit is contained in:
parent
baaf19be68
commit
a76d47ac8e
@ -1,3 +1,3 @@
|
|||||||
export * from './logged';
|
export {LoggedRoute, LoggedFunction} from './logged';
|
||||||
export * from './logger';
|
export {ScopedLogger} from './logger';
|
||||||
export * from './reflected';
|
export {LoggedParamReflectData, InjectLogger, LoggedParam} from './reflected';
|
@ -1,5 +1,5 @@
|
|||||||
import {Logger} from "@nestjs/common";
|
import {Logger} from "@nestjs/common";
|
||||||
import ScopedLogger from "./logger";
|
import {ScopedLogger} from "./logger";
|
||||||
import {LoggedParamReflectData} from "./reflected";
|
import {LoggedParamReflectData} from "./reflected";
|
||||||
import {loggedParam, scopedLogger} from "./reflected";
|
import {loggedParam, scopedLogger} from "./reflected";
|
||||||
import objectContainedLogged from "./functions";
|
import objectContainedLogged from "./functions";
|
||||||
|
@ -2,7 +2,7 @@ import {Logger} from "@nestjs/common";
|
|||||||
|
|
||||||
type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal';
|
type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal';
|
||||||
|
|
||||||
export default class ScopedLogger extends Logger {
|
export class ScopedLogger extends Logger {
|
||||||
constructor(
|
constructor(
|
||||||
private logger: Logger,
|
private logger: Logger,
|
||||||
private scope: string,
|
private scope: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user