diff --git a/src/index.ts b/src/index.ts index 3742c7b..19208e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export * from './logged'; -export * from './logger'; -export * from './reflected'; \ No newline at end of file +export {LoggedRoute, LoggedFunction} from './logged'; +export {ScopedLogger} from './logger'; +export {LoggedParamReflectData, InjectLogger, LoggedParam} from './reflected'; \ No newline at end of file diff --git a/src/logged.ts b/src/logged.ts index 6328d7d..52c9b78 100644 --- a/src/logged.ts +++ b/src/logged.ts @@ -1,5 +1,5 @@ import {Logger} from "@nestjs/common"; -import ScopedLogger from "./logger"; +import {ScopedLogger} from "./logger"; import {LoggedParamReflectData} from "./reflected"; import {loggedParam, scopedLogger} from "./reflected"; import objectContainedLogged from "./functions"; diff --git a/src/logger.ts b/src/logger.ts index 5692cc0..29774e0 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -2,7 +2,7 @@ import {Logger} from "@nestjs/common"; type LogLevel = 'debug' | 'log' | 'warn' | 'verbose' | 'error' | 'fatal'; -export default class ScopedLogger extends Logger { +export class ScopedLogger extends Logger { constructor( private logger: Logger, private scope: string,