Skip to content

Commit 1fdab3c

Browse files
committed
feat(loggerwithoutcallsite): expose logger without callsite
1 parent 59c748b commit 1fdab3c

File tree

2 files changed

+878
-0
lines changed

2 files changed

+878
-0
lines changed

src/Logger.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { wrapCallSite } from "source-map-support";
2+
import { ISettings, ISettingsParam } from ".";
3+
import { LoggerWithoutCallSite } from "./LoggerWithoutCallSite";
4+
5+
/**
6+
* 📝 Expressive TypeScript Logger for Node.js
7+
* @public
8+
*/
9+
export class Logger extends LoggerWithoutCallSite {
10+
/**
11+
* @param settings - Configuration of the logger instance (all settings are optional with sane defaults)
12+
* @param parentSettings - Used internally to
13+
*/
14+
public constructor(settings?: ISettingsParam, parentSettings?: ISettings) {
15+
super(settings, parentSettings);
16+
this._callSiteWrapper = wrapCallSite;
17+
}
18+
}

0 commit comments

Comments
 (0)