@aristid/leav-types 1.4.0-14c67d0d → 1.4.0-38541fd6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import winston from 'winston';
|
|
2
|
+
interface ICallerInfo {
|
|
3
|
+
path: string;
|
|
4
|
+
line: string;
|
|
5
|
+
col: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function getLocationInfo(): ICallerInfo | null;
|
|
8
|
+
export declare const addLocationInfoInLog: winston.Logform.FormatWrap;
|
|
9
|
+
export declare const mergeLocationInfoInLog: winston.Logform.FormatWrap;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import winston from 'winston';
|
|
2
2
|
import { type ILoggerConfig } from './config';
|
|
3
3
|
export type ILogger = Pick<typeof winston, 'error' | 'warn' | 'info' | 'log' | 'verbose' | 'debug' | 'silly'>;
|
|
4
4
|
export declare function configureLogger(config: ILoggerConfig): void;
|