@orion-js/logger 3.11.6 → 4.0.0-alpha.2

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,31 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import winston from 'winston';
4
+ import { transports } from 'winston';
5
+
6
+ export declare const sentryFormat: import("logform").FormatWrap;
7
+ export declare const textConsoleFormat: import("logform").Format;
8
+ export declare const textConsoleTransport: transports.ConsoleTransportInstance;
9
+ export declare const jsonConsoleFormat: import("logform").Format;
10
+ export declare const jsonConsoleTransport: transports.ConsoleTransportInstance;
11
+ export type LogFunction = (message: string, metadata?: any) => void;
12
+ export interface OrionLogger {
13
+ debug: LogFunction;
14
+ info: LogFunction;
15
+ warn: LogFunction;
16
+ error: LogFunction;
17
+ addContext: (module: NodeJS.Module) => OrionLogger;
18
+ addMetadata: (metadata: any) => OrionLogger;
19
+ }
20
+ export declare const winstonLogger: winston.Logger;
21
+ export declare const configureLogger: (options: winston.LoggerOptions) => void;
22
+ export declare const setLogLevel: (level: string) => string;
23
+ export declare const addTransport: (transport: winston.transport) => winston.Logger;
24
+ export declare const getLogger: (context: string) => winston.Logger;
25
+ export declare const logger: OrionLogger;
26
+
27
+ export {
28
+ winston,
29
+ };
30
+
31
+ export {};