MCPcopy
hub / github.com/alibaba/lowcode-engine / Logger

Class Logger

packages/shell/src/api/logger.ts:7–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5const innerLoggerSymbol = Symbol('logger');
6
7export class Logger implements IPublicApiLogger {
8 private readonly [innerLoggerSymbol]: any;
9
10 constructor(options: ILoggerOptions) {
11 this[innerLoggerSymbol] = getLogger(options as any);
12 }
13
14 /**
15 * debug info
16 */
17 debug(...args: any | any[]): void {
18 this[innerLoggerSymbol].debug(...args);
19 }
20
21 /**
22 * normal info output
23 */
24 info(...args: any | any[]): void {
25 this[innerLoggerSymbol].info(...args);
26 }
27
28 /**
29 * warning info output
30 */
31 warn(...args: any | any[]): void {
32 this[innerLoggerSymbol].warn(...args);
33 }
34
35 /**
36 * error info output
37 */
38 error(...args: any | any[]): void {
39 this[innerLoggerSymbol].error(...args);
40 }
41
42 /**
43 * normal log output
44 */
45 log(...args: any | any[]): void {
46 this[innerLoggerSymbol].log(...args);
47 }
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…