@mks2508/better-logger 0.14.0-alpha.1 → 1.0.0

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.
Files changed (145) hide show
  1. package/dist/chunks/{Logger-BW-kn5_7.js → Logger-CTAaDeZi.js} +49 -366
  2. package/dist/chunks/Logger-CTAaDeZi.js.map +1 -0
  3. package/dist/chunks/Logger-D8pK7XXt.js +2 -0
  4. package/dist/chunks/Logger-D8pK7XXt.js.map +1 -0
  5. package/dist/chunks/ScopedLogger-D-7q8uVP.js +2 -0
  6. package/dist/chunks/ScopedLogger-D-7q8uVP.js.map +1 -0
  7. package/dist/chunks/ScopedLogger-hS0qSkZD.js +361 -0
  8. package/dist/chunks/ScopedLogger-hS0qSkZD.js.map +1 -0
  9. package/dist/core.js +280 -307
  10. package/dist/exports.cjs +1 -1
  11. package/dist/exports.js +1 -1
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +226 -159
  15. package/dist/index.js.map +1 -1
  16. package/dist/styling.cjs +1 -1
  17. package/dist/styling.js +2 -2
  18. package/dist/types/Logger.d.ts +17 -15
  19. package/dist/types/Logger.d.ts.map +1 -1
  20. package/dist/types/core.d.ts +122 -216
  21. package/dist/types/core.d.ts.map +1 -1
  22. package/dist/types/exports-module.d.ts +1 -1
  23. package/dist/types/exports-module.d.ts.map +1 -1
  24. package/dist/types/index.d.ts +119 -4
  25. package/dist/types/index.d.ts.map +1 -1
  26. package/dist/types/styling-module.d.ts +1 -1
  27. package/dist/types/styling-module.d.ts.map +1 -1
  28. package/package.json +2 -1
  29. package/src/Logger.ts +105 -58
  30. package/src/index.ts +32 -25
  31. package/dist/.tsbuildinfo +0 -1
  32. package/dist/Logger.d.ts +0 -710
  33. package/dist/Logger.d.ts.map +0 -1
  34. package/dist/Logger.js +0 -1118
  35. package/dist/ScopedLogger.d.ts +0 -318
  36. package/dist/ScopedLogger.d.ts.map +0 -1
  37. package/dist/ScopedLogger.js +0 -426
  38. package/dist/chunks/Logger-BW-kn5_7.js.map +0 -1
  39. package/dist/chunks/Logger-BpeuYIxR.js +0 -2
  40. package/dist/chunks/Logger-BpeuYIxR.js.map +0 -1
  41. package/dist/cli/CommandProcessor.d.ts +0 -103
  42. package/dist/cli/CommandProcessor.d.ts.map +0 -1
  43. package/dist/cli/CommandProcessor.js +0 -184
  44. package/dist/cli/commands/ConfigCommand.d.ts +0 -17
  45. package/dist/cli/commands/ConfigCommand.d.ts.map +0 -1
  46. package/dist/cli/commands/ConfigCommand.js +0 -88
  47. package/dist/cli/commands/ExportCommand.d.ts +0 -51
  48. package/dist/cli/commands/ExportCommand.d.ts.map +0 -1
  49. package/dist/cli/commands/ExportCommand.js +0 -243
  50. package/dist/cli/commands/HistoryCommand.d.ts +0 -50
  51. package/dist/cli/commands/HistoryCommand.d.ts.map +0 -1
  52. package/dist/cli/commands/HistoryCommand.js +0 -96
  53. package/dist/cli/commands/StatusCommand.d.ts +0 -33
  54. package/dist/cli/commands/StatusCommand.d.ts.map +0 -1
  55. package/dist/cli/commands/StatusCommand.js +0 -93
  56. package/dist/cli/commands/ThemeCommand.d.ts +0 -33
  57. package/dist/cli/commands/ThemeCommand.d.ts.map +0 -1
  58. package/dist/cli/commands/ThemeCommand.js +0 -79
  59. package/dist/cli/help.d.ts +0 -15
  60. package/dist/cli/help.d.ts.map +0 -1
  61. package/dist/cli/help.js +0 -118
  62. package/dist/cli/index.d.ts +0 -15
  63. package/dist/cli/index.d.ts.map +0 -1
  64. package/dist/cli/index.js +0 -46
  65. package/dist/constants.d.ts +0 -122
  66. package/dist/constants.d.ts.map +0 -1
  67. package/dist/constants.js +0 -159
  68. package/dist/core.d.ts +0 -134
  69. package/dist/core.d.ts.map +0 -1
  70. package/dist/example.d.ts +0 -18
  71. package/dist/example.d.ts.map +0 -1
  72. package/dist/example.js +0 -154
  73. package/dist/exports-module.d.ts +0 -203
  74. package/dist/exports-module.d.ts.map +0 -1
  75. package/dist/exports-module.js +0 -260
  76. package/dist/handlers/AnalyticsLogHandler.d.ts +0 -11
  77. package/dist/handlers/AnalyticsLogHandler.d.ts.map +0 -1
  78. package/dist/handlers/AnalyticsLogHandler.js +0 -19
  79. package/dist/handlers/ExportLogHandler.d.ts +0 -103
  80. package/dist/handlers/ExportLogHandler.d.ts.map +0 -1
  81. package/dist/handlers/ExportLogHandler.js +0 -516
  82. package/dist/handlers/FileLogHandler.d.ts +0 -36
  83. package/dist/handlers/FileLogHandler.d.ts.map +0 -1
  84. package/dist/handlers/FileLogHandler.js +0 -156
  85. package/dist/handlers/RemoteLogHandler.d.ts +0 -14
  86. package/dist/handlers/RemoteLogHandler.d.ts.map +0 -1
  87. package/dist/handlers/RemoteLogHandler.js +0 -37
  88. package/dist/handlers/index.d.ts +0 -8
  89. package/dist/handlers/index.d.ts.map +0 -1
  90. package/dist/handlers/index.js +0 -7
  91. package/dist/index.d.ts +0 -157
  92. package/dist/index.d.ts.map +0 -1
  93. package/dist/main.d.ts +0 -2
  94. package/dist/main.d.ts.map +0 -1
  95. package/dist/main.js +0 -139
  96. package/dist/styling/LogStyleBuilder.d.ts +0 -149
  97. package/dist/styling/LogStyleBuilder.d.ts.map +0 -1
  98. package/dist/styling/LogStyleBuilder.js +0 -289
  99. package/dist/styling/SemanticStyles.d.ts +0 -181
  100. package/dist/styling/SemanticStyles.d.ts.map +0 -1
  101. package/dist/styling/SemanticStyles.js +0 -339
  102. package/dist/styling/SmartPresets.d.ts +0 -25
  103. package/dist/styling/SmartPresets.d.ts.map +0 -1
  104. package/dist/styling/SmartPresets.js +0 -276
  105. package/dist/styling/StyleBuilder.d.ts +0 -140
  106. package/dist/styling/StyleBuilder.d.ts.map +0 -1
  107. package/dist/styling/StyleBuilder.js +0 -280
  108. package/dist/styling/banners.d.ts +0 -45
  109. package/dist/styling/banners.d.ts.map +0 -1
  110. package/dist/styling/banners.js +0 -155
  111. package/dist/styling/index.d.ts +0 -10
  112. package/dist/styling/index.d.ts.map +0 -1
  113. package/dist/styling/index.js +0 -9
  114. package/dist/styling/themes.d.ts +0 -10
  115. package/dist/styling/themes.d.ts.map +0 -1
  116. package/dist/styling/themes.js +0 -231
  117. package/dist/styling-module.d.ts +0 -185
  118. package/dist/styling-module.d.ts.map +0 -1
  119. package/dist/styling-module.js +0 -199
  120. package/dist/types/core.js +0 -28
  121. package/dist/types/handlers.d.ts +0 -88
  122. package/dist/types/handlers.d.ts.map +0 -1
  123. package/dist/types/handlers.js +0 -4
  124. package/dist/types/index.js +0 -4
  125. package/dist/utils/environment.d.ts +0 -47
  126. package/dist/utils/environment.d.ts.map +0 -1
  127. package/dist/utils/environment.js +0 -85
  128. package/dist/utils/formatting.d.ts +0 -40
  129. package/dist/utils/formatting.d.ts.map +0 -1
  130. package/dist/utils/formatting.js +0 -117
  131. package/dist/utils/index.d.ts +0 -7
  132. package/dist/utils/index.d.ts.map +0 -1
  133. package/dist/utils/index.js +0 -6
  134. package/dist/utils/opentui-detection.d.ts +0 -34
  135. package/dist/utils/opentui-detection.d.ts.map +0 -1
  136. package/dist/utils/opentui-detection.js +0 -116
  137. package/dist/utils/output.d.ts +0 -44
  138. package/dist/utils/output.d.ts.map +0 -1
  139. package/dist/utils/output.js +0 -150
  140. package/dist/utils/stackTrace.d.ts +0 -9
  141. package/dist/utils/stackTrace.d.ts.map +0 -1
  142. package/dist/utils/stackTrace.js +0 -81
  143. package/dist/utils/timestamps.d.ts +0 -20
  144. package/dist/utils/timestamps.d.ts.map +0 -1
  145. package/dist/utils/timestamps.js +0 -71
@@ -1,140 +0,0 @@
1
- /**
2
- * @fileoverview StyleBuilder class for Advanced Logger
3
- */
4
- /**
5
- * Utility class for creating dynamic console styles with method chaining
6
- */
7
- export declare class StyleBuilder {
8
- private styles;
9
- constructor(baseStyle?: string);
10
- /**
11
- * Add background color or gradient
12
- */
13
- bg(background: string): StyleBuilder;
14
- /**
15
- * Add text color
16
- */
17
- color(color: string): StyleBuilder;
18
- /**
19
- * Add border styling
20
- */
21
- border(border: string): StyleBuilder;
22
- /**
23
- * Add box shadow
24
- */
25
- shadow(shadow: string): StyleBuilder;
26
- /**
27
- * Add padding
28
- */
29
- padding(padding: string): StyleBuilder;
30
- /**
31
- * Add margin
32
- */
33
- margin(margin: string): StyleBuilder;
34
- /**
35
- * Add border radius
36
- */
37
- rounded(radius?: string): StyleBuilder;
38
- /**
39
- * Add font weight
40
- */
41
- bold(): StyleBuilder;
42
- /**
43
- * Add font styling
44
- */
45
- font(font: string): StyleBuilder;
46
- /**
47
- * Set monospace font family (alias for common monospace fonts)
48
- */
49
- mono(): StyleBuilder;
50
- /**
51
- * Set system font family (alias for system fonts)
52
- */
53
- system(): StyleBuilder;
54
- /**
55
- * Add font size
56
- */
57
- size(size: string): StyleBuilder;
58
- /**
59
- * Add line height
60
- */
61
- lineHeight(height: string): StyleBuilder;
62
- /**
63
- * Add text decoration
64
- */
65
- underline(): StyleBuilder;
66
- /**
67
- * Add text transform
68
- */
69
- uppercase(): StyleBuilder;
70
- /**
71
- * Add opacity
72
- */
73
- opacity(value: number): StyleBuilder;
74
- /**
75
- * Add display property
76
- */
77
- display(value: string): StyleBuilder;
78
- /**
79
- * Add position property
80
- */
81
- position(value: string): StyleBuilder;
82
- /**
83
- * Add transform property
84
- */
85
- transform(value: string): StyleBuilder;
86
- /**
87
- * Add animation property
88
- */
89
- animation(value: string): StyleBuilder;
90
- /**
91
- * Add transition property
92
- */
93
- transition(value: string): StyleBuilder;
94
- /**
95
- * Add cursor property
96
- */
97
- cursor(value: string): StyleBuilder;
98
- /**
99
- * Add any custom CSS property
100
- */
101
- custom(property: string, value: string): StyleBuilder;
102
- /**
103
- * Add any CSS property (alias for custom)
104
- */
105
- css(property: string, value: string): StyleBuilder;
106
- /**
107
- * Build the final CSS string
108
- */
109
- build(): string;
110
- /**
111
- * Clear all styles and start fresh
112
- */
113
- clear(): StyleBuilder;
114
- /**
115
- * Clone this StyleBuilder with the same styles
116
- */
117
- clone(): StyleBuilder;
118
- /**
119
- * Merge another StyleBuilder's styles into this one
120
- */
121
- merge(other: StyleBuilder): StyleBuilder;
122
- }
123
- /**
124
- * Dynamic styler instance for external use
125
- */
126
- export declare const $: any;
127
- /**
128
- * Pre-defined style presets for common use cases
129
- */
130
- export declare const StylePresets: {
131
- success: () => StyleBuilder;
132
- error: () => StyleBuilder;
133
- warning: () => StyleBuilder;
134
- info: () => StyleBuilder;
135
- debug: () => StyleBuilder;
136
- muted: () => StyleBuilder;
137
- accent: () => StyleBuilder;
138
- neon: () => StyleBuilder;
139
- };
140
- //# sourceMappingURL=StyleBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StyleBuilder.d.ts","sourceRoot":"","sources":["../../src/styling/StyleBuilder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,qBAAa,YAAY;IACrB,OAAO,CAAC,MAAM,CAAgB;gBAElB,SAAS,SAAK;IAI1B;;OAEG;IACH,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKlC;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY;IAKtC;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,OAAO,CAAC,MAAM,GAAE,MAAc,GAAG,YAAY;IAK7C;;OAEG;IACH,IAAI,IAAI,YAAY;IAKpB;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IAKhC;;OAEG;IACH,IAAI,IAAI,YAAY;IAIpB;;OAEG;IACH,MAAM,IAAI,YAAY;IAItB;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IAKhC;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAKxC;;OAEG;IACH,SAAS,IAAI,YAAY;IAKzB;;OAEG;IACH,SAAS,IAAI,YAAY;IAKzB;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKpC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKrC;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKtC;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKtC;;OAEG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKvC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAKnC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY;IAKrD;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY;IAIlD;;OAEG;IACH,KAAK,IAAI,MAAM;IAIf;;OAEG;IACH,KAAK,IAAI,YAAY;IAKrB;;OAEG;IACH,KAAK,IAAI,YAAY;IAMrB;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY;CAI3C;AAqBD;;GAEG;AACH,eAAO,MAAM,CAAC,KAAiB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CAuDxB,CAAC"}
@@ -1,280 +0,0 @@
1
- /**
2
- * @fileoverview StyleBuilder class for Advanced Logger
3
- */
4
- /**
5
- * Utility class for creating dynamic console styles with method chaining
6
- */
7
- export class StyleBuilder {
8
- styles = [];
9
- constructor(baseStyle = '') {
10
- if (baseStyle)
11
- this.styles.push(baseStyle);
12
- }
13
- /**
14
- * Add background color or gradient
15
- */
16
- bg(background) {
17
- this.styles.push(`background: ${background}`);
18
- return this;
19
- }
20
- /**
21
- * Add text color
22
- */
23
- color(color) {
24
- this.styles.push(`color: ${color}`);
25
- return this;
26
- }
27
- /**
28
- * Add border styling
29
- */
30
- border(border) {
31
- this.styles.push(`border: ${border}`);
32
- return this;
33
- }
34
- /**
35
- * Add box shadow
36
- */
37
- shadow(shadow) {
38
- this.styles.push(`box-shadow: ${shadow}`);
39
- return this;
40
- }
41
- /**
42
- * Add padding
43
- */
44
- padding(padding) {
45
- this.styles.push(`padding: ${padding}`);
46
- return this;
47
- }
48
- /**
49
- * Add margin
50
- */
51
- margin(margin) {
52
- this.styles.push(`margin: ${margin}`);
53
- return this;
54
- }
55
- /**
56
- * Add border radius
57
- */
58
- rounded(radius = '4px') {
59
- this.styles.push(`border-radius: ${radius}`);
60
- return this;
61
- }
62
- /**
63
- * Add font weight
64
- */
65
- bold() {
66
- this.styles.push('font-weight: bold');
67
- return this;
68
- }
69
- /**
70
- * Add font styling
71
- */
72
- font(font) {
73
- this.styles.push(`font-family: ${font}`);
74
- return this;
75
- }
76
- /**
77
- * Set monospace font family (alias for common monospace fonts)
78
- */
79
- mono() {
80
- return this.font('Monaco, Consolas, "Courier New", monospace');
81
- }
82
- /**
83
- * Set system font family (alias for system fonts)
84
- */
85
- system() {
86
- return this.font('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif');
87
- }
88
- /**
89
- * Add font size
90
- */
91
- size(size) {
92
- this.styles.push(`font-size: ${size}`);
93
- return this;
94
- }
95
- /**
96
- * Add line height
97
- */
98
- lineHeight(height) {
99
- this.styles.push(`line-height: ${height}`);
100
- return this;
101
- }
102
- /**
103
- * Add text decoration
104
- */
105
- underline() {
106
- this.styles.push('text-decoration: underline');
107
- return this;
108
- }
109
- /**
110
- * Add text transform
111
- */
112
- uppercase() {
113
- this.styles.push('text-transform: uppercase');
114
- return this;
115
- }
116
- /**
117
- * Add opacity
118
- */
119
- opacity(value) {
120
- this.styles.push(`opacity: ${value}`);
121
- return this;
122
- }
123
- /**
124
- * Add display property
125
- */
126
- display(value) {
127
- this.styles.push(`display: ${value}`);
128
- return this;
129
- }
130
- /**
131
- * Add position property
132
- */
133
- position(value) {
134
- this.styles.push(`position: ${value}`);
135
- return this;
136
- }
137
- /**
138
- * Add transform property
139
- */
140
- transform(value) {
141
- this.styles.push(`transform: ${value}`);
142
- return this;
143
- }
144
- /**
145
- * Add animation property
146
- */
147
- animation(value) {
148
- this.styles.push(`animation: ${value}`);
149
- return this;
150
- }
151
- /**
152
- * Add transition property
153
- */
154
- transition(value) {
155
- this.styles.push(`transition: ${value}`);
156
- return this;
157
- }
158
- /**
159
- * Add cursor property
160
- */
161
- cursor(value) {
162
- this.styles.push(`cursor: ${value}`);
163
- return this;
164
- }
165
- /**
166
- * Add any custom CSS property
167
- */
168
- custom(property, value) {
169
- this.styles.push(`${property}: ${value}`);
170
- return this;
171
- }
172
- /**
173
- * Add any CSS property (alias for custom)
174
- */
175
- css(property, value) {
176
- return this.custom(property, value);
177
- }
178
- /**
179
- * Build the final CSS string
180
- */
181
- build() {
182
- return this.styles.join('; ');
183
- }
184
- /**
185
- * Clear all styles and start fresh
186
- */
187
- clear() {
188
- this.styles = [];
189
- return this;
190
- }
191
- /**
192
- * Clone this StyleBuilder with the same styles
193
- */
194
- clone() {
195
- const cloned = new StyleBuilder();
196
- cloned.styles = [...this.styles];
197
- return cloned;
198
- }
199
- /**
200
- * Merge another StyleBuilder's styles into this one
201
- */
202
- merge(other) {
203
- this.styles.push(...other.styles);
204
- return this;
205
- }
206
- }
207
- /**
208
- * Proxy-based dynamic styler for chainable console styling
209
- */
210
- function createStyler() {
211
- const builder = new StyleBuilder();
212
- return new Proxy(builder, {
213
- get(target, prop) {
214
- if (prop in target) {
215
- const method = target[prop];
216
- if (typeof method === 'function') {
217
- return method.bind(target);
218
- }
219
- return method;
220
- }
221
- return undefined;
222
- }
223
- });
224
- }
225
- /**
226
- * Dynamic styler instance for external use
227
- */
228
- export const $ = createStyler();
229
- /**
230
- * Pre-defined style presets for common use cases
231
- */
232
- export const StylePresets = {
233
- success: () => new StyleBuilder()
234
- .bg('linear-gradient(135deg, #00b894 0%, #00a085 100%)')
235
- .color('#ffffff')
236
- .padding('4px 8px')
237
- .rounded('4px')
238
- .bold(),
239
- error: () => new StyleBuilder()
240
- .bg('linear-gradient(135deg, #e84393 0%, #d63031 100%)')
241
- .color('#ffffff')
242
- .padding('4px 8px')
243
- .rounded('4px')
244
- .bold(),
245
- warning: () => new StyleBuilder()
246
- .bg('linear-gradient(135deg, #fdcb6e 0%, #e17055 100%)')
247
- .color('#2d3436')
248
- .padding('4px 8px')
249
- .rounded('4px')
250
- .bold(),
251
- info: () => new StyleBuilder()
252
- .bg('linear-gradient(135deg, #74b9ff 0%, #0984e3 100%)')
253
- .color('#ffffff')
254
- .padding('4px 8px')
255
- .rounded('4px')
256
- .bold(),
257
- debug: () => new StyleBuilder()
258
- .bg('linear-gradient(135deg, #667eea 0%, #764ba2 100%)')
259
- .color('#ffffff')
260
- .padding('4px 8px')
261
- .rounded('4px')
262
- .bold(),
263
- muted: () => new StyleBuilder()
264
- .color('#6c757d')
265
- .font('Monaco, Consolas, monospace')
266
- .size('12px'),
267
- accent: () => new StyleBuilder()
268
- .bg('#f8f9fa')
269
- .color('#495057')
270
- .padding('2px 6px')
271
- .rounded('3px')
272
- .border('1px solid #dee2e6'),
273
- neon: () => new StyleBuilder()
274
- .bg('linear-gradient(135deg, #0f3460 0%, #e94560 100%)')
275
- .color('#00ffff')
276
- .padding('4px 8px')
277
- .rounded('4px')
278
- .bold()
279
- .shadow('0 0 10px rgba(0, 255, 255, 0.5)'),
280
- };
@@ -1,45 +0,0 @@
1
- /**
2
- * @fileoverview Banner configurations for Advanced Logger
3
- */
4
- import type { BannerType, ThemeVariant } from '../types/index.js';
5
- /**
6
- * Banner variants for different display capabilities
7
- */
8
- export declare const BANNER_VARIANTS: {
9
- simple: {
10
- text: string;
11
- style: string;
12
- };
13
- ascii: {
14
- text: string;
15
- style: string;
16
- };
17
- unicode: {
18
- text: string;
19
- style: string;
20
- };
21
- svg: {
22
- text: string;
23
- style: string;
24
- };
25
- animated: {
26
- text: string;
27
- style: string;
28
- };
29
- };
30
- /**
31
- * Theme-specific banners for enhanced visual theming
32
- */
33
- export declare const THEME_BANNERS: Record<ThemeVariant, {
34
- simple: string;
35
- style: string;
36
- }>;
37
- /**
38
- * Feature detection for banner capabilities
39
- */
40
- export declare function detectBannerCapabilities(): BannerType;
41
- /**
42
- * Display initialization banner with advanced styling
43
- */
44
- export declare function displayInitBanner(bannerType?: BannerType): void;
45
- //# sourceMappingURL=banners.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banners.d.ts","sourceRoot":"","sources":["../../src/styling/banners.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAoD3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAyBjF,CAAC;AAEF;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,UAAU,CA2BrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAuC/D"}
@@ -1,155 +0,0 @@
1
- /**
2
- * @fileoverview Banner configurations for Advanced Logger
3
- */
4
- /**
5
- * Banner variants for different display capabilities
6
- */
7
- export const BANNER_VARIANTS = {
8
- simple: {
9
- text: 'šŸš€ ADVANCED LOGGER v2.0.0 - State-of-the-art Console Styling šŸš€',
10
- style: 'background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; border-radius: 8px; font-weight: bold; font-size: 14px;'
11
- },
12
- ascii: {
13
- text: `
14
- ___ ____ _ __ ___ _ __ _____ _____ ____ __ ___ _____ _____ _____ ____
15
- / _ \\ / __ \\| | / / / _ \\ | \\ | |/ ____| ____| _ \\ | | / _ \\ / ____| ___| _ | _ \\
16
- / /_\\ \\ / / _\` | |/ / / /_\\ \\ | \\| | | | |__ | | | | | | / / \\ \\| | __| |_ | |_| | |_) |
17
- | _ || | (_| | < | _ | | . \` | | | __| | | | | | | | | | | | |_ | _| | /| _ <
18
- | | | |\\ \\__,_|_|\\_\\ | | | | | |\\ | |___| |____| |_| | | |__\\ \\_/ /| |__| | |___| |\\ \\| |_) |
19
- \\_| |_/ \\____/ \\_| |_/ |_| \\_|\\_____|______|____/ |_____/\\___/ \\_____|_____|_| \\_|____/
20
-
21
- Advanced Logger v2.0.0 - Console Excellence`,
22
- style: 'font-family: "Courier New", Consolas, Monaco, monospace; color: #667eea; font-size: 11px; line-height: 1.2;'
23
- },
24
- unicode: {
25
- text: `
26
- ╔══════════════════════════════════════════════════════════════════════════╗
27
- ā•‘ šŸš€ ADVANCED LOGGER v2.0.0 ā•‘
28
- ā•‘ State-of-the-art Console Styling ā•‘
29
- ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•`,
30
- style: 'font-family: "Courier New", Consolas, Monaco, monospace; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 8px; font-size: 12px; line-height: 1.3;'
31
- },
32
- svg: {
33
- text: ' ',
34
- style: `
35
- background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'><defs><linearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='0%'><stop offset='0%' style='stop-color:%23667eea'/><stop offset='100%' style='stop-color:%23764ba2'/></linearGradient></defs><rect width='100%' height='100%' fill='url(%23grad)' rx='8'/><text x='200' y='30' text-anchor='middle' fill='white' font-family='monospace' font-size='14' font-weight='bold'>šŸš€ ADVANCED LOGGER</text><text x='200' y='50' text-anchor='middle' fill='white' font-family='monospace' font-size='12'>State-of-the-art Console Styling</text><text x='200' y='65' text-anchor='middle' fill='white' font-family='monospace' font-size='10'>v2.0.0</text></svg>");
36
- background-repeat: no-repeat;
37
- background-size: 400px 80px;
38
- padding: 40px 200px;
39
- color: transparent;
40
- display: inline-block;
41
- border-radius: 8px;
42
- `
43
- },
44
- animated: {
45
- text: ' šŸš€ ADVANCED LOGGER v2.0.0 ',
46
- style: `
47
- background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
48
- background-size: 400% 400%;
49
- color: white;
50
- padding: 15px 25px;
51
- border-radius: 10px;
52
- font-weight: bold;
53
- font-size: 14px;
54
- font-family: monospace;
55
- animation: gradientShift 3s ease infinite;
56
- display: inline-block;
57
- `
58
- }
59
- };
60
- /**
61
- * Theme-specific banners for enhanced visual theming
62
- */
63
- export const THEME_BANNERS = {
64
- default: {
65
- simple: 'šŸš€ ADVANCED LOGGER v2.0.0 - State-of-the-art Console Styling šŸš€',
66
- style: 'background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; border-radius: 8px; font-weight: bold;'
67
- },
68
- dark: {
69
- simple: 'šŸŒ™ ADVANCED LOGGER v2.0.0 - Dark Mode Console Excellence šŸŒ™',
70
- style: 'background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); color: #e2e8f0; padding: 12px 20px; border-radius: 8px; font-weight: bold; border: 1px solid #4a5568;'
71
- },
72
- neon: {
73
- simple: '⚔ ADVANCED LOGGER v2.0.0 - Cyberpunk Console Experience ⚔',
74
- style: 'background: linear-gradient(135deg, #0f3460 0%, #e94560 100%); color: #00ffff; padding: 12px 20px; border-radius: 8px; font-weight: bold; text-shadow: 0 0 10px #00ffff;'
75
- },
76
- minimal: {
77
- simple: 'ADVANCED LOGGER v2.0.0 - Clean Console Styling',
78
- style: 'background: #f7fafc; color: #2d3748; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 4px; font-weight: 500;'
79
- },
80
- light: {
81
- simple: 'ā˜€ļø ADVANCED LOGGER v2.0.0 - Bright Console Styling ā˜€ļø',
82
- style: 'background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); color: #495057; padding: 12px 20px; border-radius: 8px; font-weight: bold; border: 1px solid #dee2e6;'
83
- },
84
- cyberpunk: {
85
- simple: 'šŸ¤– ADVANCED LOGGER v2.0.0 - Neural Console Interface šŸ¤–',
86
- style: 'background: linear-gradient(135deg, #0d1b2a 0%, #415a77 100%); color: #00d4aa; padding: 12px 20px; border-radius: 8px; font-weight: bold; text-shadow: 0 0 10px #00d4aa; border: 1px solid #00d4aa;'
87
- }
88
- };
89
- /**
90
- * Feature detection for banner capabilities
91
- */
92
- export function detectBannerCapabilities() {
93
- // Try to detect browser capabilities
94
- const userAgent = navigator.userAgent;
95
- const isChrome = /Chrome/.test(userAgent);
96
- const isFirefox = /Firefox/.test(userAgent);
97
- const isSafari = /Safari/.test(userAgent) && !/Chrome/.test(userAgent);
98
- // Check for SVG support (most modern browsers)
99
- const supportsSVG = !!document.createElementNS &&
100
- !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect;
101
- // Check for CSS animation support
102
- const supportsAnimations = typeof document !== 'undefined' &&
103
- 'animationName' in document.createElement('div').style;
104
- // Progressive enhancement
105
- if (supportsAnimations && isChrome) {
106
- return 'animated';
107
- }
108
- else if (supportsSVG && (isChrome || isFirefox)) {
109
- return 'svg';
110
- }
111
- else if (isChrome || isFirefox) {
112
- return 'unicode';
113
- }
114
- else if (isSafari) {
115
- return 'ascii';
116
- }
117
- return 'simple';
118
- }
119
- /**
120
- * Display initialization banner with advanced styling
121
- */
122
- export function displayInitBanner(bannerType) {
123
- const selectedType = bannerType || detectBannerCapabilities();
124
- const banner = BANNER_VARIANTS[selectedType];
125
- // Add CSS animation keyframes if needed
126
- if (selectedType === 'animated') {
127
- const style = document.createElement('style');
128
- style.textContent = `
129
- @keyframes gradientShift {
130
- 0% { background-position: 0% 50%; }
131
- 50% { background-position: 100% 50%; }
132
- 100% { background-position: 0% 50%; }
133
- }
134
- `;
135
- document.head.appendChild(style);
136
- }
137
- console.log(`%c${banner.text}`, banner.style);
138
- // Show feature highlights
139
- const features = [
140
- 'šŸŽØ Advanced CSS Console Styling',
141
- 'šŸ“ Automatic Stack Trace Parsing',
142
- 'šŸ”§ Scoped Loggers & Prefixes',
143
- '⚔ Performance Timers',
144
- 'šŸŽÆ Verbosity Filtering',
145
- 'šŸ”Œ Extensible Handlers',
146
- 'šŸ“± Modern TypeScript Patterns',
147
- 'šŸ“¤ Export & Clipboard Support'
148
- ];
149
- console.group(`%c✨ Features`, 'background: #f8f9fa; color: #495057; padding: 4px 8px; border-radius: 4px; font-weight: bold;');
150
- features.forEach(feature => {
151
- console.log(`%c${feature}`, 'color: #6c757d; font-size: 13px;');
152
- });
153
- console.groupEnd();
154
- console.log(''); // Add spacing
155
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @fileoverview Styling system exports for Advanced Logger
3
- */
4
- export { StyleBuilder, $, StylePresets } from './StyleBuilder.js';
5
- export { THEME_PRESETS } from './themes.js';
6
- export { BANNER_VARIANTS, THEME_BANNERS, detectBannerCapabilities, displayInitBanner } from './banners.js';
7
- export { TimestampStyler, LevelStyler, PrefixStyler, MessageStyler, LocationStyler } from './SemanticStyles.js';
8
- export { LogStyleBuilder, createLogStyleBuilder } from './LogStyleBuilder.js';
9
- export { SMART_PRESETS, getSmartPreset, getAvailablePresets, hasPreset, PRESET_DESCRIPTIONS } from './SmartPresets.js';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styling/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EACH,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,iBAAiB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,eAAe,EACf,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACH,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,mBAAmB,EACtB,MAAM,mBAAmB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @fileoverview Styling system exports for Advanced Logger
3
- */
4
- export { StyleBuilder, $, StylePresets } from './StyleBuilder.js';
5
- export { THEME_PRESETS } from './themes.js';
6
- export { BANNER_VARIANTS, THEME_BANNERS, detectBannerCapabilities, displayInitBanner } from './banners.js';
7
- export { TimestampStyler, LevelStyler, PrefixStyler, MessageStyler, LocationStyler } from './SemanticStyles.js';
8
- export { LogStyleBuilder, createLogStyleBuilder } from './LogStyleBuilder.js';
9
- export { SMART_PRESETS, getSmartPreset, getAvailablePresets, hasPreset, PRESET_DESCRIPTIONS } from './SmartPresets.js';
@@ -1,10 +0,0 @@
1
- /**
2
- * @fileoverview Theme presets for Advanced Logger
3
- */
4
- import type { ThemeVariant } from '../types/index.js';
5
- import type { LevelStyleConfig } from '../utils/index.js';
6
- /**
7
- * Theme configurations for different visual styles
8
- */
9
- export declare const THEME_PRESETS: Record<ThemeVariant, Record<string, LevelStyleConfig>>;
10
- //# sourceMappingURL=themes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/styling/themes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAgOhF,CAAC"}