@aristid/leav-types 1.2.1-3f212648 → 1.2.1-46763c7f
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.
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ILoggerConfig {
|
|
2
|
-
/**
|
|
3
|
-
* Log level (error, warn, info, log, verbose, debug, silly)
|
|
4
|
-
* @default info
|
|
5
|
-
*/
|
|
6
|
-
level: string;
|
|
7
|
-
/**
|
|
8
|
-
* If transport is file, destination file path
|
|
9
|
-
*/
|
|
10
|
-
destinationFile?: string;
|
|
11
|
-
/**
|
|
12
|
-
* If true, use json format for logging, both in console and file
|
|
13
|
-
* Default: false (plain text)
|
|
14
|
-
*/
|
|
15
|
-
useJsonFormat?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function envToBool(value: string, defaultValue?: boolean): boolean;
|
|
18
|
-
export declare const loggerConfig: ILoggerConfig;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as winston from 'winston';
|
|
2
|
-
import { type ILoggerConfig } from './config';
|
|
3
|
-
export type ILogger = Pick<typeof winston, 'error' | 'warn' | 'info' | 'log' | 'verbose' | 'debug' | 'silly'>;
|
|
4
|
-
export declare function configureLogger(config: ILoggerConfig): void;
|
|
5
|
-
export declare const logger: ILogger;
|