@atomic-ehr/codegen 0.0.1-canary.20251007114955.88a8afc → 0.0.1-canary.20251007123452.75482df

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/dist/index.d.ts CHANGED
@@ -2,15 +2,33 @@ import { CanonicalManager } from '@atomic-ehr/fhir-canonical-manager';
2
2
  import * as FS from '@atomic-ehr/fhirschema';
3
3
  import { FHIRSchema, StructureDefinition } from '@atomic-ehr/fhirschema';
4
4
 
5
+ /**
6
+ * Structured Logging System for Atomic Codegen
7
+ *
8
+ * Provides configurable logging with levels, structured output, and context
9
+ */
10
+ /**
11
+ * Log levels in order of severity
12
+ */
13
+ declare enum LogLevel {
14
+ DEBUG = 0,
15
+ INFO = 1,
16
+ WARN = 2,
17
+ ERROR = 3,
18
+ SILENT = 4
19
+ }
20
+
5
21
  /**
6
22
  * CodeGen Logger
7
23
  *
8
24
  * Clean, colorful logging designed for code generation tools
9
25
  */
26
+
10
27
  interface LogOptions {
11
28
  prefix?: string;
12
29
  timestamp?: boolean;
13
30
  verbose?: boolean;
31
+ suppressLoggingLevel?: LogLevel[] | "all";
14
32
  }
15
33
  /**
16
34
  * Simple code generation logger with pretty colors and clean formatting
@@ -19,7 +37,10 @@ declare class CodegenLogger {
19
37
  private options;
20
38
  private dryWarnSet;
21
39
  constructor(options?: LogOptions);
40
+ private static consoleLevelsMap;
22
41
  private formatMessage;
42
+ private isSuppressed;
43
+ private tryWriteToConsole;
23
44
  /**
24
45
  * Success message with checkmark
25
46
  */
@@ -1662,7 +1683,7 @@ interface ErrorHandlerOptions {
1662
1683
  logger: CodegenLogger;
1663
1684
  verbose?: boolean;
1664
1685
  beginnerMode?: boolean;
1665
- outputFormat?: "console" | "json" | "structured";
1686
+ outputFormat?: "this.options.logger" | "json" | "structured";
1666
1687
  }
1667
1688
  /**
1668
1689
  * Centralized error handler with smart reporting