@mks2508/better-logger 0.14.0-alpha.2 → 0.18.2-alpha.1

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 (454) hide show
  1. package/README.md +289 -185
  2. package/dist/Logger.d.ts +576 -205
  3. package/dist/Logger.d.ts.map +1 -1
  4. package/dist/ScopedLogger.d.ts +48 -292
  5. package/dist/ScopedLogger.d.ts.map +1 -1
  6. package/dist/chunks/HookBridge-CiRfR67f.cjs +190 -0
  7. package/dist/chunks/HookBridge-CiRfR67f.cjs.map +1 -0
  8. package/dist/chunks/HookBridge-SgMmbXZB.js +173 -0
  9. package/dist/chunks/HookBridge-SgMmbXZB.js.map +1 -0
  10. package/dist/chunks/LogContext-Cwn-1Zzb.js +85 -0
  11. package/dist/chunks/LogContext-Cwn-1Zzb.js.map +1 -0
  12. package/dist/chunks/LogContext-L7HzynFw.cjs +90 -0
  13. package/dist/chunks/LogContext-L7HzynFw.cjs.map +1 -0
  14. package/dist/chunks/SerializerBridge-BaOQOb8q.cjs +166 -0
  15. package/dist/chunks/SerializerBridge-BaOQOb8q.cjs.map +1 -0
  16. package/dist/chunks/SerializerBridge-BkpQu5c9.js +149 -0
  17. package/dist/chunks/SerializerBridge-BkpQu5c9.js.map +1 -0
  18. package/dist/chunks/StyleManager-CIpd6wbO.cjs +92 -0
  19. package/dist/chunks/StyleManager-CIpd6wbO.cjs.map +1 -0
  20. package/dist/chunks/StyleManager-LCvVlVdx.js +87 -0
  21. package/dist/chunks/StyleManager-LCvVlVdx.js.map +1 -0
  22. package/dist/chunks/core-Dzz7agGa.cjs +39 -0
  23. package/dist/chunks/core-Dzz7agGa.cjs.map +1 -0
  24. package/dist/chunks/core-PoT7RrTK.js +34 -0
  25. package/dist/chunks/core-PoT7RrTK.js.map +1 -0
  26. package/dist/chunks/environment-detector-CI3TrWK_.js +110 -0
  27. package/dist/chunks/environment-detector-CI3TrWK_.js.map +1 -0
  28. package/dist/chunks/environment-detector-Cnn6wr6O.cjs +163 -0
  29. package/dist/chunks/environment-detector-Cnn6wr6O.cjs.map +1 -0
  30. package/dist/chunks/server-fallback-BUKjdLS7.cjs +42 -0
  31. package/dist/chunks/server-fallback-BUKjdLS7.cjs.map +1 -0
  32. package/dist/chunks/server-fallback-BsuWH1Dk.js +37 -0
  33. package/dist/chunks/server-fallback-BsuWH1Dk.js.map +1 -0
  34. package/dist/chunks/spinner-D3FsF78o.js +700 -0
  35. package/dist/chunks/spinner-D3FsF78o.js.map +1 -0
  36. package/dist/chunks/spinner-DNvxbM9a.cjs +747 -0
  37. package/dist/chunks/spinner-DNvxbM9a.cjs.map +1 -0
  38. package/dist/chunks/styling-84N8T97t.js +941 -0
  39. package/dist/chunks/styling-84N8T97t.js.map +1 -0
  40. package/dist/chunks/styling-Cg5saQ46.cjs +994 -0
  41. package/dist/chunks/styling-Cg5saQ46.cjs.map +1 -0
  42. package/dist/chunks/transports-BiDk345e.js +715 -0
  43. package/dist/chunks/transports-BiDk345e.js.map +1 -0
  44. package/dist/chunks/transports-COPWmlF1.cjs +756 -0
  45. package/dist/chunks/transports-COPWmlF1.cjs.map +1 -0
  46. package/dist/chunks/utils-BqlFYocD.cjs +698 -0
  47. package/dist/chunks/utils-BqlFYocD.cjs.map +1 -0
  48. package/dist/chunks/utils-VETbVpkR.js +579 -0
  49. package/dist/chunks/utils-VETbVpkR.js.map +1 -0
  50. package/dist/cli/commands/ExportCommand.d.ts +8 -26
  51. package/dist/cli/commands/ExportCommand.d.ts.map +1 -1
  52. package/dist/cli/index.d.ts +1 -2
  53. package/dist/cli/index.d.ts.map +1 -1
  54. package/dist/cli-module.d.ts +13 -0
  55. package/dist/cli-module.d.ts.map +1 -0
  56. package/dist/cli.cjs +11 -0
  57. package/dist/cli.js +3 -0
  58. package/dist/constants.d.ts +16 -47
  59. package/dist/constants.d.ts.map +1 -1
  60. package/dist/context/LogContext.d.ts +146 -0
  61. package/dist/context/LogContext.d.ts.map +1 -0
  62. package/dist/context/index.d.ts +6 -0
  63. package/dist/context/index.d.ts.map +1 -0
  64. package/dist/context-module.d.ts +6 -0
  65. package/dist/context-module.d.ts.map +1 -0
  66. package/dist/context.cjs +3 -0
  67. package/dist/context.js +2 -0
  68. package/dist/core.cjs +281 -2
  69. package/dist/core.cjs.map +1 -1
  70. package/dist/core.d.ts +6 -7
  71. package/dist/core.d.ts.map +1 -1
  72. package/dist/core.js +258 -314
  73. package/dist/core.js.map +1 -1
  74. package/dist/example.d.ts.map +1 -1
  75. package/dist/hooks/HookBridge.d.ts +26 -0
  76. package/dist/hooks/HookBridge.d.ts.map +1 -0
  77. package/dist/hooks/HookManager.d.ts +26 -0
  78. package/dist/hooks/HookManager.d.ts.map +1 -0
  79. package/dist/hooks/index.d.ts +7 -0
  80. package/dist/hooks/index.d.ts.map +1 -0
  81. package/dist/hooks-module.d.ts +7 -0
  82. package/dist/hooks-module.d.ts.map +1 -0
  83. package/dist/hooks.cjs +5 -0
  84. package/dist/hooks.js +2 -0
  85. package/dist/index.cjs +2522 -2
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.d.ts +42 -130
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +2447 -158
  90. package/dist/index.js.map +1 -1
  91. package/dist/node-module.d.ts +10 -0
  92. package/dist/node-module.d.ts.map +1 -0
  93. package/dist/node.cjs +13 -0
  94. package/dist/node.cjs.map +1 -0
  95. package/dist/node.js +12 -0
  96. package/dist/node.js.map +1 -0
  97. package/dist/playground/TerminalBridge.d.ts +46 -0
  98. package/dist/playground/TerminalBridge.d.ts.map +1 -0
  99. package/dist/playground/box.d.ts +14 -0
  100. package/dist/playground/box.d.ts.map +1 -0
  101. package/dist/playground/cli-table.d.ts +14 -0
  102. package/dist/playground/cli-table.d.ts.map +1 -0
  103. package/dist/playground/divider.d.ts +10 -0
  104. package/dist/playground/divider.d.ts.map +1 -0
  105. package/dist/playground/header.d.ts +11 -0
  106. package/dist/playground/header.d.ts.map +1 -0
  107. package/dist/playground/index.d.ts +11 -0
  108. package/dist/playground/index.d.ts.map +1 -0
  109. package/dist/playground/server-fallback.d.ts +27 -0
  110. package/dist/playground/server-fallback.d.ts.map +1 -0
  111. package/dist/playground/spinner.d.ts +48 -0
  112. package/dist/playground/spinner.d.ts.map +1 -0
  113. package/dist/playground/step.d.ts +14 -0
  114. package/dist/playground/step.d.ts.map +1 -0
  115. package/dist/playground-module.d.ts +11 -0
  116. package/dist/playground-module.d.ts.map +1 -0
  117. package/dist/playground.cjs +9 -0
  118. package/dist/playground.js +2 -0
  119. package/dist/serializers/SerializerBridge.d.ts +21 -0
  120. package/dist/serializers/SerializerBridge.d.ts.map +1 -0
  121. package/dist/serializers/SerializerRegistry.d.ts +16 -0
  122. package/dist/serializers/SerializerRegistry.d.ts.map +1 -0
  123. package/dist/serializers/index.d.ts +7 -0
  124. package/dist/serializers/index.d.ts.map +1 -0
  125. package/dist/serializers-module.d.ts +7 -0
  126. package/dist/serializers-module.d.ts.map +1 -0
  127. package/dist/serializers.cjs +5 -0
  128. package/dist/serializers.js +2 -0
  129. package/dist/styles/StyleManager.d.ts +83 -0
  130. package/dist/styles/StyleManager.d.ts.map +1 -0
  131. package/dist/styles/index.d.ts +7 -0
  132. package/dist/styles/index.d.ts.map +1 -0
  133. package/dist/styles-module.d.ts +7 -0
  134. package/dist/styles-module.d.ts.map +1 -0
  135. package/dist/styles.cjs +7 -0
  136. package/dist/styles.js +3 -0
  137. package/dist/styling/banners.d.ts +6 -2
  138. package/dist/styling/banners.d.ts.map +1 -1
  139. package/dist/styling/index.d.ts +8 -3
  140. package/dist/styling/index.d.ts.map +1 -1
  141. package/dist/terminal/color-converter.d.ts +73 -0
  142. package/dist/terminal/color-converter.d.ts.map +1 -0
  143. package/dist/terminal/formatter.d.ts +23 -0
  144. package/dist/terminal/formatter.d.ts.map +1 -0
  145. package/dist/transports/ConsoleTransport.d.ts +9 -0
  146. package/dist/transports/ConsoleTransport.d.ts.map +1 -0
  147. package/dist/transports/FileTransport.d.ts +56 -0
  148. package/dist/transports/FileTransport.d.ts.map +1 -0
  149. package/dist/transports/HttpTransport.d.ts +67 -0
  150. package/dist/transports/HttpTransport.d.ts.map +1 -0
  151. package/dist/transports/OtlpTransport.d.ts +148 -0
  152. package/dist/transports/OtlpTransport.d.ts.map +1 -0
  153. package/dist/transports/TransportBridge.d.ts +37 -0
  154. package/dist/transports/TransportBridge.d.ts.map +1 -0
  155. package/dist/transports/TransportManager.d.ts +36 -0
  156. package/dist/transports/TransportManager.d.ts.map +1 -0
  157. package/dist/transports/index.d.ts +6 -0
  158. package/dist/transports/index.d.ts.map +1 -0
  159. package/dist/transports-module.d.ts +10 -0
  160. package/dist/transports-module.d.ts.map +1 -0
  161. package/dist/transports.cjs +7 -0
  162. package/dist/transports.js +2 -0
  163. package/dist/types/core.d.ts +188 -6
  164. package/dist/types/core.d.ts.map +1 -1
  165. package/dist/types/handlers.d.ts +0 -67
  166. package/dist/types/handlers.d.ts.map +1 -1
  167. package/dist/types/hooks.d.ts +60 -0
  168. package/dist/types/hooks.d.ts.map +1 -0
  169. package/dist/types/index.d.ts +7 -3
  170. package/dist/types/index.d.ts.map +1 -1
  171. package/dist/types/serializers.d.ts +25 -0
  172. package/dist/types/serializers.d.ts.map +1 -0
  173. package/dist/types/transports.d.ts +127 -0
  174. package/dist/types/transports.d.ts.map +1 -0
  175. package/dist/utils/ansi-colors.d.ts +115 -0
  176. package/dist/utils/ansi-colors.d.ts.map +1 -0
  177. package/dist/utils/environment-detector.d.ts +53 -0
  178. package/dist/utils/environment-detector.d.ts.map +1 -0
  179. package/dist/utils/formatting.d.ts +1 -0
  180. package/dist/utils/formatting.d.ts.map +1 -1
  181. package/dist/utils/index.d.ts +3 -2
  182. package/dist/utils/index.d.ts.map +1 -1
  183. package/dist/utils/output.d.ts +8 -11
  184. package/dist/utils/output.d.ts.map +1 -1
  185. package/dist/utils/stackTrace.d.ts.map +1 -1
  186. package/dist/utils/timestamps.d.ts +0 -12
  187. package/dist/utils/timestamps.d.ts.map +1 -1
  188. package/package.json +96 -21
  189. package/.claude/settings.local.json +0 -39
  190. package/.github/workflows/ci-quality.yml +0 -357
  191. package/.github/workflows/docs-demo.yml +0 -119
  192. package/.github/workflows/releases-core.yml +0 -512
  193. package/.github/workflows/releases-full.yml +0 -582
  194. package/.github/workflows-backup/ci.yml +0 -221
  195. package/.github/workflows-backup/nightly.yml +0 -196
  196. package/.github/workflows-backup/release-optimized.yml +0 -373
  197. package/.github/workflows-backup/release.yml +0 -269
  198. package/.release-notes-0.2.0.md +0 -129
  199. package/.yamllint +0 -28
  200. package/CHANGELOG.json +0 -865
  201. package/CLAUDE.md +0 -204
  202. package/bun.lock +0 -323
  203. package/demo.html +0 -847
  204. package/dist/.tsbuildinfo +0 -1
  205. package/dist/Logger.js +0 -1124
  206. package/dist/ScopedLogger.js +0 -426
  207. package/dist/chunks/Logger-Crw1woqR.js +0 -3464
  208. package/dist/chunks/Logger-Crw1woqR.js.map +0 -1
  209. package/dist/chunks/Logger-D_p3xnbq.js +0 -2
  210. package/dist/chunks/Logger-D_p3xnbq.js.map +0 -1
  211. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +0 -33
  212. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +0 -1
  213. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +0 -2
  214. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +0 -1
  215. package/dist/chunks/environment-Bxbnw4pd.js +0 -544
  216. package/dist/chunks/environment-Bxbnw4pd.js.map +0 -1
  217. package/dist/chunks/environment-Dm66zOML.js +0 -4
  218. package/dist/chunks/environment-Dm66zOML.js.map +0 -1
  219. package/dist/chunks/formatting-C0riPC5_.js +0 -95
  220. package/dist/chunks/formatting-C0riPC5_.js.map +0 -1
  221. package/dist/chunks/formatting-DNCAV66-.js +0 -2
  222. package/dist/chunks/formatting-DNCAV66-.js.map +0 -1
  223. package/dist/cli/CommandProcessor.js +0 -184
  224. package/dist/cli/commands/ConfigCommand.js +0 -88
  225. package/dist/cli/commands/ExportCommand.js +0 -243
  226. package/dist/cli/commands/HistoryCommand.d.ts +0 -50
  227. package/dist/cli/commands/HistoryCommand.d.ts.map +0 -1
  228. package/dist/cli/commands/HistoryCommand.js +0 -96
  229. package/dist/cli/commands/StatusCommand.d.ts +0 -33
  230. package/dist/cli/commands/StatusCommand.d.ts.map +0 -1
  231. package/dist/cli/commands/StatusCommand.js +0 -93
  232. package/dist/cli/commands/ThemeCommand.js +0 -79
  233. package/dist/cli/help.js +0 -118
  234. package/dist/cli/index.js +0 -46
  235. package/dist/constants.js +0 -159
  236. package/dist/example.js +0 -154
  237. package/dist/exports-module.d.ts +0 -203
  238. package/dist/exports-module.d.ts.map +0 -1
  239. package/dist/exports-module.js +0 -260
  240. package/dist/exports.cjs +0 -2
  241. package/dist/exports.cjs.map +0 -1
  242. package/dist/exports.js +0 -238
  243. package/dist/exports.js.map +0 -1
  244. package/dist/handlers/AnalyticsLogHandler.d.ts +0 -11
  245. package/dist/handlers/AnalyticsLogHandler.d.ts.map +0 -1
  246. package/dist/handlers/AnalyticsLogHandler.js +0 -19
  247. package/dist/handlers/ExportLogHandler.d.ts +0 -103
  248. package/dist/handlers/ExportLogHandler.d.ts.map +0 -1
  249. package/dist/handlers/ExportLogHandler.js +0 -516
  250. package/dist/handlers/FileLogHandler.d.ts +0 -36
  251. package/dist/handlers/FileLogHandler.d.ts.map +0 -1
  252. package/dist/handlers/FileLogHandler.js +0 -156
  253. package/dist/handlers/RemoteLogHandler.d.ts +0 -14
  254. package/dist/handlers/RemoteLogHandler.d.ts.map +0 -1
  255. package/dist/handlers/RemoteLogHandler.js +0 -37
  256. package/dist/handlers/index.d.ts +0 -8
  257. package/dist/handlers/index.d.ts.map +0 -1
  258. package/dist/handlers/index.js +0 -7
  259. package/dist/main.js +0 -139
  260. package/dist/styling/LogStyleBuilder.d.ts +0 -149
  261. package/dist/styling/LogStyleBuilder.d.ts.map +0 -1
  262. package/dist/styling/LogStyleBuilder.js +0 -289
  263. package/dist/styling/SemanticStyles.d.ts +0 -181
  264. package/dist/styling/SemanticStyles.d.ts.map +0 -1
  265. package/dist/styling/SemanticStyles.js +0 -339
  266. package/dist/styling/SmartPresets.js +0 -276
  267. package/dist/styling/StyleBuilder.js +0 -280
  268. package/dist/styling/banners.js +0 -155
  269. package/dist/styling/index.js +0 -9
  270. package/dist/styling/themes.js +0 -231
  271. package/dist/styling-module.d.ts +0 -185
  272. package/dist/styling-module.d.ts.map +0 -1
  273. package/dist/styling-module.js +0 -199
  274. package/dist/styling.cjs +0 -2
  275. package/dist/styling.cjs.map +0 -1
  276. package/dist/styling.js +0 -146
  277. package/dist/styling.js.map +0 -1
  278. package/dist/types/Logger.d.ts +0 -700
  279. package/dist/types/Logger.d.ts.map +0 -1
  280. package/dist/types/ScopedLogger.d.ts +0 -310
  281. package/dist/types/ScopedLogger.d.ts.map +0 -1
  282. package/dist/types/cli/CommandProcessor.d.ts +0 -100
  283. package/dist/types/cli/CommandProcessor.d.ts.map +0 -1
  284. package/dist/types/cli/commands/ConfigCommand.d.ts +0 -14
  285. package/dist/types/cli/commands/ConfigCommand.d.ts.map +0 -1
  286. package/dist/types/cli/commands/ExportCommand.d.ts +0 -48
  287. package/dist/types/cli/commands/ExportCommand.d.ts.map +0 -1
  288. package/dist/types/cli/commands/HistoryCommand.d.ts +0 -47
  289. package/dist/types/cli/commands/HistoryCommand.d.ts.map +0 -1
  290. package/dist/types/cli/commands/StatusCommand.d.ts +0 -30
  291. package/dist/types/cli/commands/StatusCommand.d.ts.map +0 -1
  292. package/dist/types/cli/commands/ThemeCommand.d.ts +0 -30
  293. package/dist/types/cli/commands/ThemeCommand.d.ts.map +0 -1
  294. package/dist/types/cli/help.d.ts +0 -12
  295. package/dist/types/cli/help.d.ts.map +0 -1
  296. package/dist/types/cli/index.d.ts +0 -15
  297. package/dist/types/cli/index.d.ts.map +0 -1
  298. package/dist/types/constants.d.ts +0 -119
  299. package/dist/types/constants.d.ts.map +0 -1
  300. package/dist/types/core.js +0 -28
  301. package/dist/types/example.d.ts +0 -18
  302. package/dist/types/example.d.ts.map +0 -1
  303. package/dist/types/exports-module.d.ts +0 -196
  304. package/dist/types/exports-module.d.ts.map +0 -1
  305. package/dist/types/handlers/AnalyticsLogHandler.d.ts +0 -8
  306. package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +0 -1
  307. package/dist/types/handlers/ExportLogHandler.d.ts +0 -100
  308. package/dist/types/handlers/ExportLogHandler.d.ts.map +0 -1
  309. package/dist/types/handlers/FileLogHandler.d.ts +0 -33
  310. package/dist/types/handlers/FileLogHandler.d.ts.map +0 -1
  311. package/dist/types/handlers/RemoteLogHandler.d.ts +0 -11
  312. package/dist/types/handlers/RemoteLogHandler.d.ts.map +0 -1
  313. package/dist/types/handlers/index.d.ts +0 -8
  314. package/dist/types/handlers/index.d.ts.map +0 -1
  315. package/dist/types/handlers.js +0 -4
  316. package/dist/types/index.js +0 -4
  317. package/dist/types/main.d.ts +0 -2
  318. package/dist/types/main.d.ts.map +0 -1
  319. package/dist/types/styling/LogStyleBuilder.d.ts +0 -146
  320. package/dist/types/styling/LogStyleBuilder.d.ts.map +0 -1
  321. package/dist/types/styling/SemanticStyles.d.ts +0 -178
  322. package/dist/types/styling/SemanticStyles.d.ts.map +0 -1
  323. package/dist/types/styling/SmartPresets.d.ts +0 -22
  324. package/dist/types/styling/SmartPresets.d.ts.map +0 -1
  325. package/dist/types/styling/StyleBuilder.d.ts +0 -140
  326. package/dist/types/styling/StyleBuilder.d.ts.map +0 -1
  327. package/dist/types/styling/banners.d.ts +0 -42
  328. package/dist/types/styling/banners.d.ts.map +0 -1
  329. package/dist/types/styling/index.d.ts +0 -10
  330. package/dist/types/styling/index.d.ts.map +0 -1
  331. package/dist/types/styling/themes.d.ts +0 -7
  332. package/dist/types/styling/themes.d.ts.map +0 -1
  333. package/dist/types/styling-module.d.ts +0 -178
  334. package/dist/types/styling-module.d.ts.map +0 -1
  335. package/dist/types/types/core.d.ts +0 -221
  336. package/dist/types/types/core.d.ts.map +0 -1
  337. package/dist/types/types/handlers.d.ts +0 -85
  338. package/dist/types/types/handlers.d.ts.map +0 -1
  339. package/dist/types/types/index.d.ts +0 -7
  340. package/dist/types/types/index.d.ts.map +0 -1
  341. package/dist/types/utils/environment.d.ts +0 -47
  342. package/dist/types/utils/environment.d.ts.map +0 -1
  343. package/dist/types/utils/formatting.d.ts +0 -37
  344. package/dist/types/utils/formatting.d.ts.map +0 -1
  345. package/dist/types/utils/index.d.ts +0 -7
  346. package/dist/types/utils/index.d.ts.map +0 -1
  347. package/dist/types/utils/opentui-detection.d.ts +0 -34
  348. package/dist/types/utils/opentui-detection.d.ts.map +0 -1
  349. package/dist/types/utils/output.d.ts +0 -41
  350. package/dist/types/utils/output.d.ts.map +0 -1
  351. package/dist/types/utils/stackTrace.d.ts +0 -6
  352. package/dist/types/utils/stackTrace.d.ts.map +0 -1
  353. package/dist/types/utils/timestamps.d.ts +0 -20
  354. package/dist/types/utils/timestamps.d.ts.map +0 -1
  355. package/dist/utils/environment.d.ts +0 -47
  356. package/dist/utils/environment.d.ts.map +0 -1
  357. package/dist/utils/environment.js +0 -85
  358. package/dist/utils/formatting.js +0 -117
  359. package/dist/utils/index.js +0 -6
  360. package/dist/utils/opentui-detection.d.ts +0 -34
  361. package/dist/utils/opentui-detection.d.ts.map +0 -1
  362. package/dist/utils/opentui-detection.js +0 -116
  363. package/dist/utils/output.js +0 -150
  364. package/dist/utils/stackTrace.js +0 -81
  365. package/dist/utils/timestamps.js +0 -71
  366. package/dist/vite.svg +0 -1
  367. package/docs/API.md +0 -691
  368. package/docs/CORE.md +0 -264
  369. package/docs/DEVELOPMENT.md +0 -731
  370. package/docs/EXPORTS.md +0 -467
  371. package/docs/PACKAGES.md +0 -244
  372. package/docs/STYLING.md +0 -405
  373. package/docs/_config.yml +0 -36
  374. package/docs/index.md +0 -179
  375. package/examples/README.md +0 -208
  376. package/examples/basic-logging.js +0 -75
  377. package/examples/data-export.js +0 -234
  378. package/examples/package.json +0 -16
  379. package/examples/performance-timing.js +0 -170
  380. package/examples/simplified-api.js +0 -124
  381. package/examples/styling-themes.js +0 -207
  382. package/index.html +0 -358
  383. package/packages/core/package.json +0 -57
  384. package/packages/exports/package.json +0 -41
  385. package/packages/nodejs-opentui/README.md +0 -232
  386. package/packages/nodejs-opentui/package.json +0 -72
  387. package/packages/nodejs-opentui/src/LogRenderer.ts +0 -171
  388. package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +0 -178
  389. package/packages/nodejs-opentui/src/components/LogBadge.tsx +0 -131
  390. package/packages/nodejs-opentui/src/index.ts +0 -133
  391. package/packages/nodejs-opentui/src/types.ts +0 -158
  392. package/packages/nodejs-opentui/tsconfig.json +0 -20
  393. package/packages/styling/package.json +0 -41
  394. package/project-utils/README.md +0 -172
  395. package/project-utils/auto-release-gemini.ts +0 -1193
  396. package/project-utils/auto-release-ui.ts +0 -1329
  397. package/project-utils/commit-generator.ts +0 -1385
  398. package/project-utils/commit-ui.ts +0 -264
  399. package/project-utils/git-utils.ts +0 -199
  400. package/project-utils/github-release-manager.ts +0 -466
  401. package/project-utils/project-config.ts +0 -260
  402. package/project-utils/prompt-templates.js +0 -345
  403. package/project-utils/prompt-templates.ts +0 -422
  404. package/project-utils/version-manager.ts +0 -1078
  405. package/public/vite.svg +0 -1
  406. package/src/Logger.ts +0 -1276
  407. package/src/ScopedLogger.ts +0 -454
  408. package/src/cli/CommandProcessor.ts +0 -248
  409. package/src/cli/commands/ConfigCommand.ts +0 -93
  410. package/src/cli/commands/ExportCommand.ts +0 -276
  411. package/src/cli/commands/HistoryCommand.ts +0 -117
  412. package/src/cli/commands/StatusCommand.ts +0 -112
  413. package/src/cli/commands/ThemeCommand.ts +0 -88
  414. package/src/cli/help.ts +0 -127
  415. package/src/cli/index.ts +0 -71
  416. package/src/constants.ts +0 -171
  417. package/src/core.ts +0 -393
  418. package/src/example.ts +0 -210
  419. package/src/exports-module.ts +0 -311
  420. package/src/handlers/AnalyticsLogHandler.ts +0 -22
  421. package/src/handlers/ExportLogHandler.ts +0 -609
  422. package/src/handlers/FileLogHandler.ts +0 -169
  423. package/src/handlers/RemoteLogHandler.ts +0 -42
  424. package/src/handlers/index.ts +0 -8
  425. package/src/index.ts +0 -209
  426. package/src/main.ts +0 -196
  427. package/src/style.css +0 -96
  428. package/src/styling/LogStyleBuilder.ts +0 -355
  429. package/src/styling/SemanticStyles.ts +0 -380
  430. package/src/styling/SmartPresets.ts +0 -288
  431. package/src/styling/StyleBuilder.ts +0 -319
  432. package/src/styling/banners.ts +0 -168
  433. package/src/styling/index.ts +0 -27
  434. package/src/styling/themes.ts +0 -235
  435. package/src/styling-module.ts +0 -244
  436. package/src/types/core.ts +0 -236
  437. package/src/types/handlers.ts +0 -95
  438. package/src/types/index.ts +0 -35
  439. package/src/typescript.svg +0 -1
  440. package/src/utils/environment.ts +0 -94
  441. package/src/utils/formatting.ts +0 -142
  442. package/src/utils/index.ts +0 -21
  443. package/src/utils/opentui-detection.ts +0 -138
  444. package/src/utils/output.ts +0 -185
  445. package/src/utils/stackTrace.ts +0 -95
  446. package/src/utils/timestamps.ts +0 -80
  447. package/src/vite-env.d.ts +0 -1
  448. package/test-core-browser.html +0 -237
  449. package/test-core-node.js +0 -63
  450. package/tests/test-conflict-resolution.ts +0 -391
  451. package/tests/validate-workflows.sh +0 -131
  452. package/tests/yaml-autofix.sh +0 -146
  453. package/tsconfig.json +0 -50
  454. package/vite.config.ts +0 -223
package/src/types/core.ts DELETED
@@ -1,236 +0,0 @@
1
- /**
2
- * @fileoverview Definiciones de tipos principales para Better Logger
3
- * @version 0.3.0
4
- * @since 2024
5
- */
6
-
7
- /**
8
- * Niveles de log soportados en orden jerárquico (debug < info < warn < error < critical)
9
- *
10
- * @constant {Object} LOG_LEVELS
11
- * @property {number} debug - Nivel 0: Información de depuración detallada
12
- * @property {number} info - Nivel 1: Mensajes informativos generales
13
- * @property {number} warn - Nivel 2: Advertencias que no detienen la ejecución
14
- * @property {number} error - Nivel 3: Errores que pueden afectar funcionalidad
15
- * @property {number} critical - Nivel 4: Errores críticos que requieren atención inmediata
16
- *
17
- * @example
18
- * // Verificar si un nivel debe mostrarse
19
- * if (LOG_LEVELS[currentLevel] >= LOG_LEVELS.warn) {
20
- * // Mostrar solo warn, error y critical
21
- * }
22
- */
23
- export const LOG_LEVELS = {
24
- debug: 0,
25
- info: 1,
26
- warn: 2,
27
- error: 3,
28
- critical: 4,
29
- } as const;
30
-
31
- /**
32
- * Tipo de nivel de log derivado de las claves de LOG_LEVELS
33
- * @typedef {'debug' | 'info' | 'warn' | 'error' | 'critical'} LogLevel
34
- */
35
- export type LogLevel = keyof typeof LOG_LEVELS;
36
-
37
- /**
38
- * Tipo de nivel de verbosidad para filtrar logs
39
- * @typedef {LogLevel | 'silent'} Verbosity
40
- * @description 'silent' desactiva completamente todos los logs
41
- */
42
- export type Verbosity = LogLevel | 'silent';
43
-
44
- /**
45
- * Variantes de tema para diferentes estilos visuales
46
- * @typedef {'default' | 'dark' | 'light' | 'neon' | 'minimal' | 'cyberpunk'} ThemeVariant
47
- *
48
- * @description
49
- * - default: Tema adaptativo automático (claro/oscuro)
50
- * - dark: Tema oscuro con colores vibrantes
51
- * - light: Tema claro con colores suaves
52
- * - neon: Colores neón brillantes con efectos de resplandor
53
- * - minimal: Diseño minimalista y limpio
54
- * - cyberpunk: Estilo futurista con neón y efectos
55
- */
56
- export type ThemeVariant = 'default' | 'dark' | 'light' | 'neon' | 'minimal' | 'cyberpunk';
57
-
58
- /**
59
- * Detección de tema de DevTools del navegador
60
- * @typedef {'light' | 'dark'} DevToolsTheme
61
- */
62
- export type DevToolsTheme = 'light' | 'dark';
63
-
64
- /**
65
- * Tipos de banner para diferentes enfoques visuales
66
- * @typedef {'simple' | 'ascii' | 'unicode' | 'svg' | 'animated'} BannerType
67
- *
68
- * @description
69
- * - simple: Texto simple sin decoración
70
- * - ascii: Arte ASCII tradicional
71
- * - unicode: Caracteres Unicode decorativos
72
- * - svg: Gráfico SVG embebido
73
- * - animated: Banner con animación CSS
74
- */
75
- export type BannerType = 'simple' | 'ascii' | 'unicode' | 'svg' | 'animated';
76
-
77
- /**
78
- * Formatos de exportación para datos de log
79
- * @typedef {'json' | 'csv' | 'markdown' | 'plain' | 'html'} ExportFormat
80
- *
81
- * @description
82
- * - json: Formato JSON estructurado
83
- * - csv: Valores separados por comas para Excel/Sheets
84
- * - markdown: Formato Markdown para documentación
85
- * - plain: Texto plano sin formato
86
- * - html: HTML con estilos para visualización web
87
- */
88
- export type ExportFormat = 'json' | 'csv' | 'markdown' | 'plain' | 'html';
89
-
90
- /**
91
- * Interfaz de configuración para instancias del logger
92
- *
93
- * @interface LoggerConfig
94
- * @since 0.3.0
95
- *
96
- * @example
97
- * const config: LoggerConfig = {
98
- * globalPrefix: 'MiApp',
99
- * verbosity: 'info',
100
- * enableColors: true,
101
- * enableTimestamps: true,
102
- * enableStackTrace: false,
103
- * theme: 'cyberpunk',
104
- * bannerType: 'animated',
105
- * bufferSize: 500,
106
- * autoDetectTheme: true
107
- * };
108
- */
109
- export interface LoggerConfig {
110
- globalPrefix?: string;
111
- verbosity: Verbosity;
112
- enableColors: boolean;
113
- enableTimestamps: boolean;
114
- enableStackTrace: boolean;
115
- theme?: ThemeVariant;
116
- bannerType?: BannerType;
117
- bufferSize?: number;
118
- autoDetectTheme?: boolean;
119
- }
120
-
121
- /**
122
- * Información parseada del stack trace
123
- *
124
- * @interface StackInfo
125
- * @description Contiene la ubicación exacta donde se originó el log
126
- */
127
- export interface StackInfo {
128
- file: string;
129
- line: number;
130
- column: number;
131
- function?: string;
132
- }
133
-
134
- /**
135
- * Entrada de temporizador para medición de rendimiento
136
- *
137
- * @interface TimerEntry
138
- * @description Usado internamente para rastrear temporizadores activos
139
- */
140
- export interface TimerEntry {
141
- label: string;
142
- startTime: number;
143
- }
144
-
145
- /**
146
- * Opciones para estilizar componentes
147
- *
148
- * @interface StyleOptions
149
- * @description Configuración de dimensiones y espaciado para elementos visuales
150
- */
151
- export interface StyleOptions {
152
- width?: number;
153
- height?: number;
154
- padding?: string;
155
- }
156
-
157
- /**
158
- * Configuración de colores adaptativos para temas claro/oscuro
159
- *
160
- * @interface AdaptiveColors
161
- * @description Define colores que se ajustan automáticamente al tema del navegador
162
- */
163
- export interface AdaptiveColors {
164
- light: string;
165
- dark: string;
166
- }
167
-
168
- /**
169
- * Configuración de espaciado para elementos del log
170
- * @typedef {'compact' | 'normal' | 'spacious'} SpacingType
171
- *
172
- * @description
173
- * - compact: Espaciado mínimo para más densidad
174
- * - normal: Espaciado estándar balanceado
175
- * - spacious: Espaciado amplio para mejor legibilidad
176
- */
177
- export type SpacingType = 'compact' | 'normal' | 'spacious';
178
-
179
- /**
180
- * Configuración de layout para la estructura del log
181
- *
182
- * @interface LogLayout
183
- * @description Define cómo se organizan visualmente los elementos del log
184
- */
185
- export interface LogLayout {
186
- spacing: SpacingType;
187
- innerPadding?: string;
188
- outerMargin?: string;
189
- separator?: string;
190
- }
191
-
192
- /**
193
- * Configuración para partes individuales del log
194
- *
195
- * @interface LogPartConfig
196
- * @description Permite personalizar cada elemento del log por separado
197
- *
198
- * @example
199
- * const timestampConfig: LogPartConfig = {
200
- * show: true,
201
- * color: '#888',
202
- * font: 'Monaco',
203
- * size: '11px'
204
- * };
205
- */
206
- export interface LogPartConfig {
207
- show?: boolean;
208
- style?: string;
209
- font?: string;
210
- size?: string;
211
- color?: string; // Automatically adaptive by default
212
- background?: string;
213
- padding?: string;
214
- margin?: string;
215
- border?: string;
216
- shadow?: string;
217
- uppercase?: boolean;
218
- }
219
-
220
- /**
221
- * Configuración completa de estilos del log
222
- *
223
- * @interface LogStyles
224
- * @description Agrupa todas las opciones de estilo en una sola configuración
225
- * @since 0.3.0
226
- */
227
- export interface LogStyles {
228
- layout?: LogLayout;
229
- timestamp?: LogPartConfig;
230
- level?: LogPartConfig;
231
- prefix?: LogPartConfig;
232
- message?: LogPartConfig;
233
- location?: LogPartConfig;
234
- backdrop?: string;
235
- transparency?: number;
236
- }
@@ -1,95 +0,0 @@
1
- /**
2
- * @fileoverview Handler and metadata type definitions for Advanced Logger
3
- */
4
-
5
- import type { LogLevel, StackInfo } from './core.js';
6
-
7
- /**
8
- * Metadata associated with each log entry
9
- */
10
- export interface LogMetadata {
11
- timestamp: string;
12
- level: LogLevel;
13
- prefix?: string;
14
- stackInfo?: StackInfo;
15
- group?: string;
16
- }
17
-
18
- /**
19
- * Interface for custom log handlers (extensibility)
20
- */
21
- export interface ILogHandler {
22
- handle(level: LogLevel, message: string, args: any[], metadata: LogMetadata): void;
23
- }
24
-
25
- /**
26
- * Stored log entry for export functionality
27
- */
28
- export interface LogEntry {
29
- id: string;
30
- timestamp: string;
31
- level: LogLevel;
32
- prefix?: string;
33
- message: string;
34
- args: any[];
35
- location?: StackInfo;
36
- groupInfo?: {
37
- depth: number;
38
- groupName?: string;
39
- };
40
- }
41
-
42
- /**
43
- * Export filter options
44
- */
45
- export interface ExportFilters {
46
- levels?: LogLevel[];
47
- since?: Date | string | number; // Date, ISO string, or hours ago
48
- until?: Date | string | number;
49
- prefixes?: string[];
50
- excludePrefixes?: string[];
51
- withStackTrace?: boolean;
52
- errorsOnly?: boolean;
53
- last?: number;
54
- first?: number;
55
- search?: string;
56
- groupBy?: 'level' | 'prefix' | 'hour' | 'date';
57
- }
58
-
59
- /**
60
- * Export options for different formats
61
- */
62
- export interface ExportOptions {
63
- minimal?: boolean;
64
- compact?: boolean;
65
- styled?: boolean;
66
- includeMetadata?: boolean;
67
- groupBy?: ExportFilters['groupBy'];
68
- }
69
-
70
- /**
71
- * Export result with metadata
72
- */
73
- export interface ExportResult {
74
- format: string;
75
- data: string;
76
- metadata: {
77
- totalLogs: number;
78
- filteredLogs: number;
79
- exportedAt: string;
80
- filters?: ExportFilters;
81
- options?: ExportOptions;
82
- };
83
- }
84
-
85
- /**
86
- * Buffer statistics for log management
87
- */
88
- export interface BufferStats {
89
- size: number;
90
- maxSize: number;
91
- usage: number; // percentage
92
- oldestLog?: Date;
93
- newestLog?: Date;
94
- levelCounts: Record<LogLevel, number>;
95
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * @fileoverview Type definitions exports for Advanced Logger
3
- */
4
-
5
- // Core types
6
- export type {
7
- LogLevel,
8
- Verbosity,
9
- ThemeVariant,
10
- DevToolsTheme,
11
- BannerType,
12
- ExportFormat,
13
- LoggerConfig,
14
- StackInfo,
15
- TimerEntry,
16
- StyleOptions,
17
- AdaptiveColors,
18
- SpacingType,
19
- LogLayout,
20
- LogPartConfig,
21
- LogStyles,
22
- } from './core.js';
23
-
24
- export { LOG_LEVELS } from './core.js';
25
-
26
- // Handler types
27
- export type {
28
- LogMetadata,
29
- ILogHandler,
30
- LogEntry,
31
- ExportFilters,
32
- ExportOptions,
33
- ExportResult,
34
- BufferStats,
35
- } from './handlers.js';
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="#007ACC" d="M0 128v128h256V0H0z"></path><path fill="#FFF" d="m56.612 128.85l-.081 10.483h33.32v94.68h23.568v-94.68h33.321v-10.28c0-5.69-.122-10.444-.284-10.566c-.122-.162-20.4-.244-44.983-.203l-44.74.122l-.121 10.443Zm149.955-10.742c6.501 1.625 11.459 4.51 16.01 9.224c2.357 2.52 5.851 7.111 6.136 8.208c.08.325-11.053 7.802-17.798 11.988c-.244.162-1.22-.894-2.317-2.52c-3.291-4.795-6.745-6.867-12.028-7.233c-7.76-.528-12.759 3.535-12.718 10.321c0 1.992.284 3.17 1.097 4.795c1.707 3.536 4.876 5.649 14.832 9.956c18.326 7.883 26.168 13.084 31.045 20.48c5.445 8.249 6.664 21.415 2.966 31.208c-4.063 10.646-14.14 17.879-28.323 20.276c-4.388.772-14.79.65-19.504-.203c-10.28-1.828-20.033-6.908-26.047-13.572c-2.357-2.6-6.949-9.387-6.664-9.874c.122-.163 1.178-.813 2.356-1.504c1.138-.65 5.446-3.129 9.509-5.485l7.355-4.267l1.544 2.276c2.154 3.29 6.867 7.801 9.712 9.305c8.167 4.307 19.383 3.698 24.909-1.26c2.357-2.153 3.332-4.388 3.332-7.68c0-2.966-.366-4.266-1.91-6.501c-1.99-2.845-6.054-5.242-17.595-10.24c-13.206-5.69-18.895-9.224-24.096-14.832c-3.007-3.25-5.852-8.452-7.03-12.8c-.975-3.617-1.22-12.678-.447-16.335c2.723-12.76 12.353-21.659 26.25-24.3c4.51-.853 14.994-.528 19.424.569Z"></path></svg>
@@ -1,94 +0,0 @@
1
- /**
2
- * @fileoverview Environment detection utilities for Universal Logger
3
- */
4
-
5
- /**
6
- * Checks if running in Node.js environment
7
- */
8
- export const isNode = typeof process !== 'undefined' &&
9
- process.versions &&
10
- process.versions.node;
11
-
12
- /**
13
- * Checks if running in browser environment
14
- */
15
- export const isBrowser = typeof window !== 'undefined' &&
16
- typeof document !== 'undefined';
17
-
18
- /**
19
- * Checks if running in web worker environment
20
- */
21
- export const isWebWorker = typeof self !== 'undefined' &&
22
- typeof (self as any).importScripts === 'function';
23
-
24
- /**
25
- * Checks if running in Deno environment
26
- */
27
- export const isDeno = typeof globalThis !== 'undefined' &&
28
- 'Deno' in globalThis;
29
-
30
- /**
31
- * Gets the current runtime environment
32
- */
33
- export function getRuntimeEnvironment(): 'node' | 'browser' | 'webworker' | 'deno' | 'unknown' {
34
- if (isNode) return 'node';
35
- if (isBrowser) return 'browser';
36
- if (isWebWorker) return 'webworker';
37
- if (isDeno) return 'deno';
38
- return 'unknown';
39
- }
40
-
41
- /**
42
- * Checks if colors/styling should be supported in current environment
43
- */
44
- export function supportsColors(): boolean {
45
- if (isBrowser) {
46
- // Browser always supports CSS colors
47
- return true;
48
- }
49
-
50
- if (isNode) {
51
- // Check if Node.js supports colors
52
- return process.stdout?.isTTY === true ||
53
- process.env.FORCE_COLOR === '1' ||
54
- process.env.FORCE_COLOR === 'true';
55
- }
56
-
57
- return false;
58
- }
59
-
60
- /**
61
- * Checks if CSS styling is supported (browser-only feature)
62
- */
63
- export function supportsCSSColors(): boolean {
64
- return isBrowser;
65
- }
66
-
67
- /**
68
- * Checks if ANSI colors are supported (terminal environments)
69
- */
70
- export function supportsANSIColors(): boolean {
71
- if (isNode) {
72
- return process.stdout?.isTTY === true ||
73
- process.env.FORCE_COLOR === '1' ||
74
- process.env.FORCE_COLOR === 'true';
75
- }
76
-
77
- return false;
78
- }
79
-
80
- /**
81
- * Gets environment-specific information
82
- */
83
- export function getEnvironmentInfo() {
84
- const env = getRuntimeEnvironment();
85
-
86
- return {
87
- runtime: env,
88
- supportsColors: supportsColors(),
89
- supportsCSSColors: supportsCSSColors(),
90
- supportsANSIColors: supportsANSIColors(),
91
- isProduction: isNode ? process.env.NODE_ENV === 'production' : false,
92
- version: isNode ? process.versions.node : (isBrowser ? navigator.userAgent : 'unknown')
93
- };
94
- }
@@ -1,142 +0,0 @@
1
- /**
2
- * @fileoverview Formatting utilities for Universal Logger
3
- */
4
-
5
- import type { LogLevel, StackInfo } from '../types/index.js';
6
- import { formatTimestamp } from './timestamps.js';
7
-
8
- /**
9
- * Creates plain text output for any environment
10
- * No colors, no styling - maximum compatibility
11
- */
12
- export function createPlainOutput(
13
- level: LogLevel,
14
- message: string,
15
- prefix?: string,
16
- stackInfo?: StackInfo | null
17
- ): string {
18
- const timestamp = formatTimestamp();
19
- const timeStr = timestamp.slice(11, 23); // HH:MM:SS.mmm
20
-
21
- let output = `[${timeStr}] [${level.toUpperCase()}]`;
22
-
23
- if (prefix) {
24
- output += ` [${prefix}]`;
25
- }
26
-
27
- output += ` ${message}`;
28
-
29
- if (stackInfo) {
30
- output += ` (${stackInfo.file}:${stackInfo.line}:${stackInfo.column})`;
31
- }
32
-
33
- return output;
34
- }
35
-
36
- /**
37
- * Gets the appropriate log method for the level
38
- * Uses different console methods for better semantics
39
- */
40
- export function getConsoleMethod(level: LogLevel): 'log' | 'info' | 'warn' | 'error' {
41
- switch (level) {
42
- case 'debug':
43
- return 'log';
44
- case 'info':
45
- return 'info';
46
- case 'warn':
47
- return 'warn';
48
- case 'error':
49
- case 'critical':
50
- return 'error';
51
- default:
52
- return 'log';
53
- }
54
- }
55
-
56
- /**
57
- * Create a simple log entry object for handlers
58
- */
59
- export function createLogEntry(
60
- level: LogLevel,
61
- message: string,
62
- args: any[],
63
- prefix?: string,
64
- stackInfo?: StackInfo | null
65
- ) {
66
- return {
67
- timestamp: formatTimestamp(),
68
- level: level.toUpperCase(),
69
- prefix,
70
- message,
71
- args: args.slice(1), // Exclude the first message argument
72
- location: stackInfo ? {
73
- file: stackInfo.file,
74
- line: stackInfo.line,
75
- column: stackInfo.column,
76
- function: stackInfo.function
77
- } : undefined,
78
- raw: args
79
- };
80
- }
81
-
82
- /**
83
- * Format data for table display in plain text
84
- */
85
- export function formatTablePlain(data: any, columns?: string[]): string {
86
- try {
87
- if (Array.isArray(data)) {
88
- if (data.length === 0) return '[Empty Array]';
89
-
90
- // Simple array formatting
91
- if (typeof data[0] !== 'object') {
92
- return data.map((item, i) => `${i}: ${item}`).join('\n');
93
- }
94
-
95
- // Object array formatting
96
- const keys = columns || Object.keys(data[0] || {});
97
- const header = keys.join('\t');
98
- const rows = data.map(item =>
99
- keys.map(key => String(item[key] || '')).join('\t')
100
- );
101
-
102
- return [header, ...rows].join('\n');
103
- }
104
-
105
- if (typeof data === 'object' && data !== null) {
106
- // Simple object formatting
107
- return Object.entries(data)
108
- .map(([key, value]) => `${key}: ${value}`)
109
- .join('\n');
110
- }
111
-
112
- return String(data);
113
- } catch (error) {
114
- return `[Error formatting table: ${error}]`;
115
- }
116
- }
117
-
118
- /**
119
- * Safe object serialization for logging
120
- */
121
- export function safeSerialize(obj: any, maxDepth: number = 3, currentDepth: number = 0): any {
122
- if (currentDepth >= maxDepth) {
123
- return '[Max Depth Reached]';
124
- }
125
-
126
- if (obj === null) return null;
127
- if (obj === undefined) return '[undefined]';
128
- if (typeof obj === 'function') return '[Function]';
129
- if (obj instanceof Error) return `[Error: ${obj.message}]`;
130
- if (obj instanceof Date) return obj.toISOString();
131
- if (typeof obj !== 'object') return obj;
132
-
133
- if (Array.isArray(obj)) {
134
- return obj.map(item => safeSerialize(item, maxDepth, currentDepth + 1));
135
- }
136
-
137
- const result: any = {};
138
- for (const [key, value] of Object.entries(obj)) {
139
- result[key] = safeSerialize(value, maxDepth, currentDepth + 1);
140
- }
141
- return result;
142
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @fileoverview Utility functions exports for Advanced Logger
3
- */
4
-
5
- export { parseStackTrace } from './stackTrace.js';
6
- export {
7
- formatTimestamp,
8
- parseRelativeTime,
9
- parseTimeInput,
10
- formatDisplayTime
11
- } from './timestamps.js';
12
- export {
13
- createStyledOutput,
14
- generateLogId,
15
- escapeHtml,
16
- safeStringify,
17
- detectDevToolsTheme,
18
- getAdaptiveColor,
19
- setupThemeChangeListener,
20
- type LevelStyleConfig
21
- } from './output.js';