@mks2508/better-logger 0.0.2-alpha.2 → 0.3.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 (326) hide show
  1. package/.claude/settings.local.json +18 -2
  2. package/.github/workflows/ci-quality.yml +357 -0
  3. package/.github/workflows/docs-demo.yml +119 -0
  4. package/.github/workflows/releases-core.yml +512 -0
  5. package/.github/workflows/releases-full.yml +582 -0
  6. package/.github/{workflows → workflows-backup}/ci.yml +12 -110
  7. package/.github/workflows-backup/nightly.yml +196 -0
  8. package/.github/workflows-backup/release-optimized.yml +373 -0
  9. package/.release-notes-0.2.0.md +129 -0
  10. package/.yamllint +28 -0
  11. package/CHANGELOG.json +783 -0
  12. package/CLAUDE.md +92 -1
  13. package/README.md +198 -490
  14. package/bun.lock +323 -0
  15. package/demo.html +9 -2
  16. package/dist/.tsbuildinfo +1 -0
  17. package/dist/Logger.d.ts +272 -0
  18. package/dist/Logger.d.ts.map +1 -0
  19. package/dist/Logger.js +680 -0
  20. package/dist/ScopedLogger.d.ts +126 -0
  21. package/dist/ScopedLogger.d.ts.map +1 -0
  22. package/dist/ScopedLogger.js +234 -0
  23. package/dist/chunks/Logger-BpeuYIxR.js +2 -0
  24. package/dist/chunks/Logger-BpeuYIxR.js.map +1 -0
  25. package/dist/chunks/Logger-Didxtr23.js +3275 -0
  26. package/dist/chunks/Logger-Didxtr23.js.map +1 -0
  27. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +33 -0
  28. package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +1 -0
  29. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +2 -0
  30. package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +1 -0
  31. package/dist/chunks/environment-Bxbnw4pd.js +544 -0
  32. package/dist/chunks/environment-Bxbnw4pd.js.map +1 -0
  33. package/dist/chunks/environment-Dm66zOML.js +4 -0
  34. package/dist/chunks/environment-Dm66zOML.js.map +1 -0
  35. package/dist/chunks/formatting-C0riPC5_.js +95 -0
  36. package/dist/chunks/formatting-C0riPC5_.js.map +1 -0
  37. package/dist/chunks/formatting-DNCAV66-.js +2 -0
  38. package/dist/chunks/formatting-DNCAV66-.js.map +1 -0
  39. package/dist/cli/CommandProcessor.d.ts +103 -0
  40. package/dist/cli/CommandProcessor.d.ts.map +1 -0
  41. package/dist/cli/CommandProcessor.js +184 -0
  42. package/dist/cli/commands/ConfigCommand.d.ts +17 -0
  43. package/dist/cli/commands/ConfigCommand.d.ts.map +1 -0
  44. package/dist/cli/commands/ConfigCommand.js +88 -0
  45. package/dist/cli/commands/ExportCommand.d.ts +51 -0
  46. package/dist/cli/commands/ExportCommand.d.ts.map +1 -0
  47. package/dist/cli/commands/ExportCommand.js +243 -0
  48. package/dist/cli/commands/HistoryCommand.d.ts +50 -0
  49. package/dist/cli/commands/HistoryCommand.d.ts.map +1 -0
  50. package/dist/cli/commands/HistoryCommand.js +96 -0
  51. package/dist/cli/commands/StatusCommand.d.ts +33 -0
  52. package/dist/cli/commands/StatusCommand.d.ts.map +1 -0
  53. package/dist/cli/commands/StatusCommand.js +93 -0
  54. package/dist/cli/commands/ThemeCommand.d.ts +33 -0
  55. package/dist/cli/commands/ThemeCommand.d.ts.map +1 -0
  56. package/dist/cli/commands/ThemeCommand.js +79 -0
  57. package/dist/cli/help.d.ts +15 -0
  58. package/dist/cli/help.d.ts.map +1 -0
  59. package/dist/cli/help.js +118 -0
  60. package/dist/cli/index.d.ts +15 -0
  61. package/dist/cli/index.d.ts.map +1 -0
  62. package/dist/cli/index.js +46 -0
  63. package/dist/constants.d.ts +122 -0
  64. package/dist/constants.d.ts.map +1 -0
  65. package/dist/constants.js +159 -0
  66. package/dist/core.cjs +1 -1
  67. package/dist/core.cjs.map +1 -1
  68. package/dist/core.d.ts +134 -0
  69. package/dist/core.d.ts.map +1 -0
  70. package/dist/core.js +315 -242
  71. package/dist/core.js.map +1 -1
  72. package/dist/example.d.ts +18 -0
  73. package/dist/example.d.ts.map +1 -0
  74. package/dist/example.js +154 -0
  75. package/dist/exports-module.d.ts +203 -0
  76. package/dist/exports-module.d.ts.map +1 -0
  77. package/dist/exports-module.js +260 -0
  78. package/dist/exports.cjs +1 -1
  79. package/dist/exports.cjs.map +1 -1
  80. package/dist/exports.js +5 -4
  81. package/dist/exports.js.map +1 -1
  82. package/dist/handlers/AnalyticsLogHandler.d.ts +11 -0
  83. package/dist/handlers/AnalyticsLogHandler.d.ts.map +1 -0
  84. package/dist/handlers/AnalyticsLogHandler.js +19 -0
  85. package/dist/handlers/ExportLogHandler.d.ts +103 -0
  86. package/dist/handlers/ExportLogHandler.d.ts.map +1 -0
  87. package/dist/handlers/ExportLogHandler.js +516 -0
  88. package/dist/handlers/FileLogHandler.d.ts +36 -0
  89. package/dist/handlers/FileLogHandler.d.ts.map +1 -0
  90. package/dist/handlers/FileLogHandler.js +156 -0
  91. package/dist/handlers/RemoteLogHandler.d.ts +14 -0
  92. package/dist/handlers/RemoteLogHandler.d.ts.map +1 -0
  93. package/dist/handlers/RemoteLogHandler.js +37 -0
  94. package/dist/handlers/index.d.ts +8 -0
  95. package/dist/handlers/index.d.ts.map +1 -0
  96. package/dist/handlers/index.js +7 -0
  97. package/dist/index.cjs +1 -1
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.d.ts +86 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/index.js +89 -103
  102. package/dist/index.js.map +1 -1
  103. package/dist/main.d.ts +2 -0
  104. package/dist/main.d.ts.map +1 -0
  105. package/dist/main.js +139 -0
  106. package/dist/styling/LogStyleBuilder.d.ts +149 -0
  107. package/dist/styling/LogStyleBuilder.d.ts.map +1 -0
  108. package/dist/styling/LogStyleBuilder.js +289 -0
  109. package/dist/styling/SemanticStyles.d.ts +181 -0
  110. package/dist/styling/SemanticStyles.d.ts.map +1 -0
  111. package/dist/styling/SemanticStyles.js +339 -0
  112. package/dist/styling/SmartPresets.d.ts +25 -0
  113. package/dist/styling/SmartPresets.d.ts.map +1 -0
  114. package/dist/styling/SmartPresets.js +276 -0
  115. package/dist/styling/StyleBuilder.d.ts +140 -0
  116. package/dist/styling/StyleBuilder.d.ts.map +1 -0
  117. package/dist/styling/StyleBuilder.js +280 -0
  118. package/dist/styling/banners.d.ts +45 -0
  119. package/dist/styling/banners.d.ts.map +1 -0
  120. package/dist/styling/banners.js +155 -0
  121. package/dist/styling/index.d.ts +10 -0
  122. package/dist/styling/index.d.ts.map +1 -0
  123. package/dist/styling/index.js +9 -0
  124. package/dist/styling/themes.d.ts +10 -0
  125. package/dist/styling/themes.d.ts.map +1 -0
  126. package/dist/styling/themes.js +231 -0
  127. package/dist/styling-module.d.ts +185 -0
  128. package/dist/styling-module.d.ts.map +1 -0
  129. package/dist/styling-module.js +199 -0
  130. package/dist/styling.cjs +1 -1
  131. package/dist/styling.cjs.map +1 -1
  132. package/dist/styling.js +6 -6
  133. package/dist/styling.js.map +1 -1
  134. package/dist/types/Logger.d.ts +268 -0
  135. package/dist/types/Logger.d.ts.map +1 -0
  136. package/dist/types/ScopedLogger.d.ts +123 -0
  137. package/dist/types/ScopedLogger.d.ts.map +1 -0
  138. package/dist/types/cli/CommandProcessor.d.ts +100 -0
  139. package/dist/types/cli/CommandProcessor.d.ts.map +1 -0
  140. package/dist/types/cli/commands/ConfigCommand.d.ts +14 -0
  141. package/dist/types/cli/commands/ConfigCommand.d.ts.map +1 -0
  142. package/dist/types/cli/commands/ExportCommand.d.ts +48 -0
  143. package/dist/types/cli/commands/ExportCommand.d.ts.map +1 -0
  144. package/dist/types/cli/commands/HistoryCommand.d.ts +47 -0
  145. package/dist/types/cli/commands/HistoryCommand.d.ts.map +1 -0
  146. package/dist/types/cli/commands/StatusCommand.d.ts +30 -0
  147. package/dist/types/cli/commands/StatusCommand.d.ts.map +1 -0
  148. package/dist/types/cli/commands/ThemeCommand.d.ts +30 -0
  149. package/dist/types/cli/commands/ThemeCommand.d.ts.map +1 -0
  150. package/dist/types/cli/help.d.ts +12 -0
  151. package/dist/types/cli/help.d.ts.map +1 -0
  152. package/dist/types/cli/index.d.ts +15 -0
  153. package/dist/types/cli/index.d.ts.map +1 -0
  154. package/dist/types/constants.d.ts +119 -0
  155. package/dist/types/constants.d.ts.map +1 -0
  156. package/dist/types/core.d.ts +125 -211
  157. package/dist/types/core.d.ts.map +1 -0
  158. package/dist/types/core.js +13 -0
  159. package/dist/types/example.d.ts +18 -0
  160. package/dist/types/example.d.ts.map +1 -0
  161. package/dist/types/exports-module.d.ts +196 -0
  162. package/dist/types/exports-module.d.ts.map +1 -0
  163. package/dist/types/handlers/AnalyticsLogHandler.d.ts +8 -0
  164. package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +1 -0
  165. package/dist/types/handlers/ExportLogHandler.d.ts +100 -0
  166. package/dist/types/handlers/ExportLogHandler.d.ts.map +1 -0
  167. package/dist/types/handlers/FileLogHandler.d.ts +33 -0
  168. package/dist/types/handlers/FileLogHandler.d.ts.map +1 -0
  169. package/dist/types/handlers/RemoteLogHandler.d.ts +11 -0
  170. package/dist/types/handlers/RemoteLogHandler.d.ts.map +1 -0
  171. package/dist/types/handlers/index.d.ts +8 -0
  172. package/dist/types/handlers/index.d.ts.map +1 -0
  173. package/dist/types/handlers.d.ts +88 -0
  174. package/dist/types/handlers.d.ts.map +1 -0
  175. package/dist/types/handlers.js +4 -0
  176. package/dist/types/index.d.ts +7 -675
  177. package/dist/types/index.d.ts.map +1 -0
  178. package/dist/types/index.js +4 -0
  179. package/dist/types/main.d.ts +2 -0
  180. package/dist/types/main.d.ts.map +1 -0
  181. package/dist/types/styling/LogStyleBuilder.d.ts +146 -0
  182. package/dist/types/styling/LogStyleBuilder.d.ts.map +1 -0
  183. package/dist/types/styling/SemanticStyles.d.ts +178 -0
  184. package/dist/types/styling/SemanticStyles.d.ts.map +1 -0
  185. package/dist/types/styling/SmartPresets.d.ts +22 -0
  186. package/dist/types/styling/SmartPresets.d.ts.map +1 -0
  187. package/dist/types/styling/StyleBuilder.d.ts +140 -0
  188. package/dist/types/styling/StyleBuilder.d.ts.map +1 -0
  189. package/dist/types/styling/banners.d.ts +42 -0
  190. package/dist/types/styling/banners.d.ts.map +1 -0
  191. package/dist/types/styling/index.d.ts +10 -0
  192. package/dist/types/styling/index.d.ts.map +1 -0
  193. package/dist/types/styling/themes.d.ts +7 -0
  194. package/dist/types/styling/themes.d.ts.map +1 -0
  195. package/dist/types/styling-module.d.ts +178 -0
  196. package/dist/types/styling-module.d.ts.map +1 -0
  197. package/dist/types/types/core.d.ts +125 -0
  198. package/dist/types/types/core.d.ts.map +1 -0
  199. package/dist/types/types/handlers.d.ts +85 -0
  200. package/dist/types/types/handlers.d.ts.map +1 -0
  201. package/dist/types/types/index.d.ts +7 -0
  202. package/dist/types/types/index.d.ts.map +1 -0
  203. package/dist/types/utils/environment.d.ts +47 -0
  204. package/dist/types/utils/environment.d.ts.map +1 -0
  205. package/dist/types/utils/formatting.d.ts +37 -0
  206. package/dist/types/utils/formatting.d.ts.map +1 -0
  207. package/dist/types/utils/index.d.ts +7 -0
  208. package/dist/types/utils/index.d.ts.map +1 -0
  209. package/dist/types/utils/opentui-detection.d.ts +34 -0
  210. package/dist/types/utils/opentui-detection.d.ts.map +1 -0
  211. package/dist/types/utils/output.d.ts +41 -0
  212. package/dist/types/utils/output.d.ts.map +1 -0
  213. package/dist/types/utils/stackTrace.d.ts +6 -0
  214. package/dist/types/utils/stackTrace.d.ts.map +1 -0
  215. package/dist/types/utils/timestamps.d.ts +20 -0
  216. package/dist/types/utils/timestamps.d.ts.map +1 -0
  217. package/dist/utils/environment.d.ts +47 -0
  218. package/dist/utils/environment.d.ts.map +1 -0
  219. package/dist/utils/environment.js +85 -0
  220. package/dist/utils/formatting.d.ts +40 -0
  221. package/dist/utils/formatting.d.ts.map +1 -0
  222. package/dist/utils/formatting.js +117 -0
  223. package/dist/utils/index.d.ts +7 -0
  224. package/dist/utils/index.d.ts.map +1 -0
  225. package/dist/utils/index.js +6 -0
  226. package/dist/utils/opentui-detection.d.ts +34 -0
  227. package/dist/utils/opentui-detection.d.ts.map +1 -0
  228. package/dist/utils/opentui-detection.js +116 -0
  229. package/dist/utils/output.d.ts +44 -0
  230. package/dist/utils/output.d.ts.map +1 -0
  231. package/dist/utils/output.js +150 -0
  232. package/dist/utils/stackTrace.d.ts +9 -0
  233. package/dist/utils/stackTrace.d.ts.map +1 -0
  234. package/dist/utils/stackTrace.js +81 -0
  235. package/dist/utils/timestamps.d.ts +20 -0
  236. package/dist/utils/timestamps.d.ts.map +1 -0
  237. package/dist/utils/timestamps.js +71 -0
  238. package/docs/API.md +691 -0
  239. package/docs/CORE.md +10 -10
  240. package/docs/DEVELOPMENT.md +731 -0
  241. package/docs/PACKAGES.md +244 -0
  242. package/docs/_config.yml +36 -0
  243. package/docs/index.md +179 -0
  244. package/examples/README.md +208 -0
  245. package/examples/basic-logging.js +75 -0
  246. package/examples/data-export.js +234 -0
  247. package/examples/package.json +16 -0
  248. package/examples/performance-timing.js +170 -0
  249. package/examples/simplified-api.js +124 -0
  250. package/examples/styling-themes.js +207 -0
  251. package/package.json +37 -21
  252. package/packages/core/package.json +57 -0
  253. package/packages/exports/package.json +41 -0
  254. package/packages/nodejs-opentui/README.md +232 -0
  255. package/packages/nodejs-opentui/package.json +72 -0
  256. package/packages/nodejs-opentui/src/LogRenderer.ts +171 -0
  257. package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +178 -0
  258. package/packages/nodejs-opentui/src/components/LogBadge.tsx +131 -0
  259. package/packages/nodejs-opentui/src/index.ts +133 -0
  260. package/packages/nodejs-opentui/src/types.ts +158 -0
  261. package/packages/nodejs-opentui/tsconfig.json +20 -0
  262. package/packages/styling/package.json +41 -0
  263. package/project-utils/README.md +172 -0
  264. package/project-utils/auto-release-gemini.ts +1193 -0
  265. package/project-utils/auto-release-ui.ts +1329 -0
  266. package/project-utils/commit-generator.ts +1385 -0
  267. package/project-utils/commit-ui.ts +264 -0
  268. package/project-utils/git-utils.ts +199 -0
  269. package/project-utils/github-release-manager.ts +466 -0
  270. package/project-utils/project-config.ts +260 -0
  271. package/project-utils/prompt-templates.js +345 -0
  272. package/project-utils/prompt-templates.ts +422 -0
  273. package/project-utils/version-manager.ts +1078 -0
  274. package/src/Logger.ts +251 -16
  275. package/src/ScopedLogger.ts +262 -0
  276. package/src/cli/CommandProcessor.ts +173 -2
  277. package/src/cli/commands/HistoryCommand.ts +117 -0
  278. package/src/cli/index.ts +12 -0
  279. package/src/constants.ts +84 -2
  280. package/src/core.ts +119 -46
  281. package/src/example.ts +4 -4
  282. package/src/exports-module.ts +1 -1
  283. package/src/handlers/ExportLogHandler.ts +141 -0
  284. package/src/handlers/FileLogHandler.ts +144 -5
  285. package/src/index.ts +1 -1
  286. package/src/main.ts +3 -3
  287. package/src/styling/LogStyleBuilder.ts +355 -0
  288. package/src/styling/SemanticStyles.ts +380 -0
  289. package/src/styling/SmartPresets.ts +288 -0
  290. package/src/styling/StyleBuilder.ts +14 -0
  291. package/src/styling/index.ts +16 -1
  292. package/src/styling-module.ts +1 -1
  293. package/src/types/core.ts +60 -0
  294. package/src/types/index.ts +6 -0
  295. package/src/utils/environment.ts +94 -0
  296. package/src/utils/formatting.ts +142 -0
  297. package/src/utils/index.ts +3 -0
  298. package/src/utils/opentui-detection.ts +138 -0
  299. package/src/utils/output.ts +66 -8
  300. package/test-core-browser.html +237 -0
  301. package/test-core-node.js +63 -0
  302. package/tests/test-conflict-resolution.ts +391 -0
  303. package/tests/validate-workflows.sh +131 -0
  304. package/tests/yaml-autofix.sh +146 -0
  305. package/vite.config.ts +189 -50
  306. package/.npmrc.bak +0 -1
  307. package/dist/chunks/Logger-BQhMKy_T.js +0 -2
  308. package/dist/chunks/Logger-BQhMKy_T.js.map +0 -1
  309. package/dist/chunks/Logger-BrFKFZcD.js +0 -978
  310. package/dist/chunks/Logger-BrFKFZcD.js.map +0 -1
  311. package/dist/chunks/core-2opW4Pi3.js +0 -194
  312. package/dist/chunks/core-2opW4Pi3.js.map +0 -1
  313. package/dist/chunks/core-DyugwSYZ.js +0 -4
  314. package/dist/chunks/core-DyugwSYZ.js.map +0 -1
  315. package/dist/chunks/exports-BNP3R7dp.js +0 -421
  316. package/dist/chunks/exports-BNP3R7dp.js.map +0 -1
  317. package/dist/chunks/exports-U1xLBXrY.js +0 -2
  318. package/dist/chunks/exports-U1xLBXrY.js.map +0 -1
  319. package/dist/chunks/styling-DhUDzwlE.js +0 -654
  320. package/dist/chunks/styling-DhUDzwlE.js.map +0 -1
  321. package/dist/chunks/styling-tmRDI28D.js +0 -2
  322. package/dist/chunks/styling-tmRDI28D.js.map +0 -1
  323. package/dist/types/exports.d.ts +0 -600
  324. package/dist/types/styling.d.ts +0 -751
  325. package/src/Logger.ts.backup +0 -1684
  326. /package/.github/{workflows → workflows-backup}/release.yml +0 -0
@@ -0,0 +1,45 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,155 @@
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
+ }
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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';
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,231 @@
1
+ /**
2
+ * @fileoverview Theme presets for Advanced Logger
3
+ */
4
+ /**
5
+ * Theme configurations for different visual styles
6
+ */
7
+ export const THEME_PRESETS = {
8
+ default: {
9
+ debug: {
10
+ emoji: '🐞', label: 'DEBUG',
11
+ background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
12
+ color: '#ffffff', border: '1px solid #667eea',
13
+ shadow: '0 2px 4px rgba(102, 126, 234, 0.3)',
14
+ },
15
+ info: {
16
+ emoji: 'ℹ️', label: 'INFO',
17
+ background: 'linear-gradient(135deg, #74b9ff 0%, #0984e3 100%)',
18
+ color: '#ffffff', border: '1px solid #74b9ff',
19
+ shadow: '0 2px 4px rgba(116, 185, 255, 0.3)',
20
+ },
21
+ warn: {
22
+ emoji: '⚠️', label: 'WARN',
23
+ background: 'linear-gradient(135deg, #fdcb6e 0%, #e17055 100%)',
24
+ color: '#2d3436', border: '1px solid #fdcb6e',
25
+ shadow: '0 2px 4px rgba(253, 203, 110, 0.3)',
26
+ },
27
+ error: {
28
+ emoji: '❌', label: 'ERROR',
29
+ background: 'linear-gradient(135deg, #e84393 0%, #d63031 100%)',
30
+ color: '#ffffff', border: '1px solid #e84393',
31
+ shadow: '0 2px 4px rgba(232, 67, 147, 0.3)',
32
+ },
33
+ success: {
34
+ emoji: '✅', label: 'SUCCESS',
35
+ background: 'linear-gradient(135deg, #00b894 0%, #00a085 100%)',
36
+ color: '#ffffff', border: '1px solid #00b894',
37
+ shadow: '0 2px 4px rgba(0, 184, 148, 0.3)',
38
+ },
39
+ critical: {
40
+ emoji: '🔥', label: 'CRITICAL',
41
+ background: 'linear-gradient(135deg, #ff3838 0%, #ff1744 100%)',
42
+ color: '#ffffff', border: '2px solid #ff3838',
43
+ shadow: '0 4px 8px rgba(255, 56, 56, 0.5)',
44
+ },
45
+ },
46
+ dark: {
47
+ debug: {
48
+ emoji: '🌙', label: 'DEBUG',
49
+ background: 'linear-gradient(135deg, #2d3748 0%, #4a5568 100%)',
50
+ color: '#e2e8f0', border: '1px solid #4a5568',
51
+ shadow: '0 2px 4px rgba(45, 55, 72, 0.8)',
52
+ },
53
+ info: {
54
+ emoji: '💡', label: 'INFO',
55
+ background: 'linear-gradient(135deg, #1a202c 0%, #2d3748 100%)',
56
+ color: '#90cdf4', border: '1px solid #3182ce',
57
+ shadow: '0 2px 4px rgba(26, 32, 44, 0.8)',
58
+ },
59
+ warn: {
60
+ emoji: '⚡', label: 'WARN',
61
+ background: 'linear-gradient(135deg, #744210 0%, #975a16 100%)',
62
+ color: '#faf089', border: '1px solid #d69e2e',
63
+ shadow: '0 2px 4px rgba(116, 66, 16, 0.8)',
64
+ },
65
+ error: {
66
+ emoji: '💀', label: 'ERROR',
67
+ background: 'linear-gradient(135deg, #742a2a 0%, #9b2c2c 100%)',
68
+ color: '#feb2b2', border: '1px solid #e53e3e',
69
+ shadow: '0 2px 4px rgba(116, 42, 42, 0.8)',
70
+ },
71
+ success: {
72
+ emoji: '🎯', label: 'SUCCESS',
73
+ background: 'linear-gradient(135deg, #276749 0%, #2f855a 100%)',
74
+ color: '#9ae6b4', border: '1px solid #38a169',
75
+ shadow: '0 2px 4px rgba(39, 103, 73, 0.8)',
76
+ },
77
+ critical: {
78
+ emoji: '💥', label: 'CRITICAL',
79
+ background: 'linear-gradient(135deg, #1a1a1a 0%, #ff0000 100%)',
80
+ color: '#ffffff', border: '2px solid #ff0000',
81
+ shadow: '0 4px 8px rgba(255, 0, 0, 0.9)',
82
+ },
83
+ },
84
+ neon: {
85
+ debug: {
86
+ emoji: '⚡', label: 'DEBUG',
87
+ background: 'linear-gradient(135deg, #0f3460 0%, #e94560 100%)',
88
+ color: '#00ffff', border: '1px solid #00ffff',
89
+ shadow: '0 0 10px rgba(0, 255, 255, 0.5)',
90
+ },
91
+ info: {
92
+ emoji: '🔮', label: 'INFO',
93
+ background: 'linear-gradient(135deg, #16213e 0%, #0f3460 100%)',
94
+ color: '#00ff41', border: '1px solid #00ff41',
95
+ shadow: '0 0 10px rgba(0, 255, 65, 0.5)',
96
+ },
97
+ warn: {
98
+ emoji: '⚠️', label: 'WARN',
99
+ background: 'linear-gradient(135deg, #533a03 0%, #e94560 100%)',
100
+ color: '#ffff00', border: '1px solid #ffff00',
101
+ shadow: '0 0 10px rgba(255, 255, 0, 0.5)',
102
+ },
103
+ error: {
104
+ emoji: '💥', label: 'ERROR',
105
+ background: 'linear-gradient(135deg, #5c0a0a 0%, #ff073a 100%)',
106
+ color: '#ff073a', border: '1px solid #ff073a',
107
+ shadow: '0 0 10px rgba(255, 7, 58, 0.8)',
108
+ },
109
+ success: {
110
+ emoji: '✨', label: 'SUCCESS',
111
+ background: 'linear-gradient(135deg, #0a5c0a 0%, #39ff14 100%)',
112
+ color: '#39ff14', border: '1px solid #39ff14',
113
+ shadow: '0 0 10px rgba(57, 255, 20, 0.8)',
114
+ },
115
+ critical: {
116
+ emoji: '🌟', label: 'CRITICAL',
117
+ background: 'linear-gradient(135deg, #000000 0%, #ff0080 100%)',
118
+ color: '#ff0080', border: '2px solid #ff0080',
119
+ shadow: '0 0 20px rgba(255, 0, 128, 1)',
120
+ },
121
+ },
122
+ minimal: {
123
+ debug: {
124
+ emoji: '', label: 'DEBUG',
125
+ background: '#f7fafc', color: '#4a5568',
126
+ border: '1px solid #e2e8f0', shadow: 'none',
127
+ },
128
+ info: {
129
+ emoji: '', label: 'INFO',
130
+ background: '#ebf8ff', color: '#2b6cb0',
131
+ border: '1px solid #bee3f8', shadow: 'none',
132
+ },
133
+ warn: {
134
+ emoji: '', label: 'WARN',
135
+ background: '#fffbf0', color: '#c05621',
136
+ border: '1px solid #fed7aa', shadow: 'none',
137
+ },
138
+ error: {
139
+ emoji: '', label: 'ERROR',
140
+ background: '#fef5f5', color: '#c53030',
141
+ border: '1px solid #fca5a5', shadow: 'none',
142
+ },
143
+ success: {
144
+ emoji: '', label: 'SUCCESS',
145
+ background: '#f0fff4', color: '#2f855a',
146
+ border: '1px solid #9ae6b4', shadow: 'none',
147
+ },
148
+ critical: {
149
+ emoji: '', label: 'CRITICAL',
150
+ background: '#fef5f5', color: '#e53e3e',
151
+ border: '2px solid #f56565', shadow: 'none',
152
+ },
153
+ },
154
+ // Additional theme variants can be added here
155
+ light: {
156
+ debug: {
157
+ emoji: '🔍', label: 'DEBUG',
158
+ background: 'linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%)',
159
+ color: '#1565c0', border: '1px solid #90caf9',
160
+ shadow: '0 1px 3px rgba(33, 150, 243, 0.2)',
161
+ },
162
+ info: {
163
+ emoji: 'ℹ️', label: 'INFO',
164
+ background: 'linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%)',
165
+ color: '#7b1fa2', border: '1px solid #ce93d8',
166
+ shadow: '0 1px 3px rgba(156, 39, 176, 0.2)',
167
+ },
168
+ warn: {
169
+ emoji: '⚠️', label: 'WARN',
170
+ background: 'linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%)',
171
+ color: '#f57c00', border: '1px solid #ffcc02',
172
+ shadow: '0 1px 3px rgba(255, 152, 0, 0.2)',
173
+ },
174
+ error: {
175
+ emoji: '❌', label: 'ERROR',
176
+ background: 'linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%)',
177
+ color: '#d32f2f', border: '1px solid #f44336',
178
+ shadow: '0 1px 3px rgba(244, 67, 54, 0.2)',
179
+ },
180
+ success: {
181
+ emoji: '✅', label: 'SUCCESS',
182
+ background: 'linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%)',
183
+ color: '#388e3c', border: '1px solid #4caf50',
184
+ shadow: '0 1px 3px rgba(76, 175, 80, 0.2)',
185
+ },
186
+ critical: {
187
+ emoji: '🚨', label: 'CRITICAL',
188
+ background: 'linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%)',
189
+ color: '#c2185b', border: '2px solid #e91e63',
190
+ shadow: '0 2px 6px rgba(233, 30, 99, 0.3)',
191
+ },
192
+ },
193
+ cyberpunk: {
194
+ debug: {
195
+ emoji: '🤖', label: 'DEBUG',
196
+ background: 'linear-gradient(135deg, #0d1b2a 0%, #415a77 100%)',
197
+ color: '#00d4aa', border: '1px solid #00d4aa',
198
+ shadow: '0 0 15px rgba(0, 212, 170, 0.4)',
199
+ },
200
+ info: {
201
+ emoji: '🔗', label: 'INFO',
202
+ background: 'linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%)',
203
+ color: '#00b4d8', border: '1px solid #00b4d8',
204
+ shadow: '0 0 15px rgba(0, 180, 216, 0.4)',
205
+ },
206
+ warn: {
207
+ emoji: '⚡', label: 'WARN',
208
+ background: 'linear-gradient(135deg, #f72585 0%, #b5179e 100%)',
209
+ color: '#ffff3f', border: '1px solid #ffff3f',
210
+ shadow: '0 0 15px rgba(255, 255, 63, 0.4)',
211
+ },
212
+ error: {
213
+ emoji: '💀', label: 'ERROR',
214
+ background: 'linear-gradient(135deg, #7209b7 0%, #480ca8 100%)',
215
+ color: '#ff006e', border: '1px solid #ff006e',
216
+ shadow: '0 0 15px rgba(255, 0, 110, 0.6)',
217
+ },
218
+ success: {
219
+ emoji: '⚡', label: 'SUCCESS',
220
+ background: 'linear-gradient(135deg, #003566 0%, #001d3d 100%)',
221
+ color: '#00f5ff', border: '1px solid #00f5ff',
222
+ shadow: '0 0 15px rgba(0, 245, 255, 0.4)',
223
+ },
224
+ critical: {
225
+ emoji: '💥', label: 'CRITICAL',
226
+ background: 'linear-gradient(135deg, #000000 0%, #ff0040 100%)',
227
+ color: '#ff0040', border: '2px solid #ff0040',
228
+ shadow: '0 0 25px rgba(255, 0, 64, 0.8)',
229
+ },
230
+ },
231
+ };
@@ -0,0 +1,185 @@
1
+ /**
2
+ * @fileoverview Styling Module - Advanced visual features for Better Logger
3
+ * @version 0.0.1
4
+ *
5
+ * This module provides advanced styling features including SVG support, CSS animations,
6
+ * themed banners, and visual enhancements for console logging.
7
+ */
8
+ import { Logger } from './Logger.js';
9
+ import { StyleBuilder } from './styling/index.js';
10
+ import type { ThemeVariant, BannerType, StyleOptions } from './types/index.js';
11
+ /**
12
+ * Enhanced Logger with advanced styling capabilities
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * import { StyledLogger } from '@mks2508/better-logger/styling';
17
+ *
18
+ * const logger = new StyledLogger();
19
+ * logger.setTheme('neon');
20
+ * logger.logAnimated('🌟 Animated message!');
21
+ * logger.logWithSVG('Custom SVG Logo', svgContent);
22
+ * ```
23
+ */
24
+ export declare class StyledLogger extends Logger {
25
+ /**
26
+ * Log with SVG background image
27
+ *
28
+ * @param message - The message to log
29
+ * @param svgContent - SVG content as string (optional)
30
+ * @param options - Styling options
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * logger.logWithSVG('My App', '<svg>...</svg>', {
35
+ * width: 400,
36
+ * height: 80,
37
+ * padding: '40px 200px'
38
+ * });
39
+ * ```
40
+ */
41
+ logWithSVG(message: string, svgContent?: string, options?: StyleOptions): void;
42
+ /**
43
+ * Log with animated background gradient
44
+ *
45
+ * @param message - The message to log
46
+ * @param duration - Animation duration in seconds
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * logger.logAnimated('🚀 Loading...', 2);
51
+ * ```
52
+ */
53
+ logAnimated(message: string, duration?: number): void;
54
+ /**
55
+ * Display banner with specified type
56
+ *
57
+ * @param bannerType - Type of banner to display
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * logger.showBanner('animated');
62
+ * ```
63
+ */
64
+ showBanner(bannerType?: BannerType): void;
65
+ /**
66
+ * Set banner type for initialization display
67
+ *
68
+ * @param bannerType - Type of banner to display
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * logger.setBannerType('svg');
73
+ * ```
74
+ */
75
+ setBannerType(bannerType: BannerType): void;
76
+ /**
77
+ * Sets the logger theme with visual banner
78
+ *
79
+ * @param theme - Theme variant to apply
80
+ *
81
+ * @example
82
+ * ```typescript
83
+ * logger.setTheme('cyberpunk'); // Shows themed banner
84
+ * ```
85
+ */
86
+ setTheme(theme: ThemeVariant): void;
87
+ }
88
+ declare const styledLogger: StyledLogger;
89
+ /**
90
+ * Utility functions for creating custom styles
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * import { createStyle, StyleBuilder } from '@mks2508/better-logger/styling';
95
+ *
96
+ * const myStyle = createStyle()
97
+ * .bg('linear-gradient(45deg, #ff6b6b, #feca57)')
98
+ * .color('white')
99
+ * .padding('10px')
100
+ * .build();
101
+ *
102
+ * console.log('%cCustom Message', myStyle);
103
+ * ```
104
+ */
105
+ export declare const createStyle: () => StyleBuilder;
106
+ /**
107
+ * Pre-built style presets
108
+ *
109
+ * @example
110
+ * ```typescript
111
+ * import { stylePresets } from '@mks2508/better-logger/styling';
112
+ *
113
+ * console.log('%cSuccess!', stylePresets.success);
114
+ * console.log('%cError!', stylePresets.error);
115
+ * ```
116
+ */
117
+ export declare const stylePresets: {
118
+ success: string;
119
+ error: string;
120
+ warning: string;
121
+ info: string;
122
+ accent: string;
123
+ };
124
+ /**
125
+ * Available themes for the logger
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * import { themes } from '@mks2508/better-logger/styling';
130
+ *
131
+ * console.log('Available themes:', Object.keys(themes));
132
+ * ```
133
+ */
134
+ export declare const themes: string[];
135
+ /**
136
+ * Available banner types
137
+ *
138
+ * @example
139
+ * ```typescript
140
+ * import { bannerTypes } from '@mks2508/better-logger/styling';
141
+ *
142
+ * console.log('Available banners:', bannerTypes);
143
+ * ```
144
+ */
145
+ export declare const bannerTypes: string[];
146
+ /**
147
+ * Display initialization banner
148
+ *
149
+ * @param bannerType - Type of banner to display
150
+ *
151
+ * @example
152
+ * ```typescript
153
+ * import { showInitBanner } from '@mks2508/better-logger/styling';
154
+ *
155
+ * showInitBanner('animated');
156
+ * ```
157
+ */
158
+ export declare const showInitBanner: (bannerType?: BannerType) => void;
159
+ /**
160
+ * Export individual styled logging methods
161
+ */
162
+ export declare const debug: (...args: any[]) => void;
163
+ export declare const info: (...args: any[]) => void;
164
+ export declare const warn: (...args: any[]) => void;
165
+ export declare const error: (...args: any[]) => void;
166
+ export declare const success: (...args: any[]) => void;
167
+ export declare const critical: (...args: any[]) => void;
168
+ export declare const trace: (...args: any[]) => void;
169
+ export declare const table: (data: any, columns?: string[]) => void;
170
+ export declare const group: (label: string, collapsed?: boolean) => void;
171
+ export declare const groupEnd: () => void;
172
+ export declare const time: (label: string) => void;
173
+ export declare const timeEnd: (label: string) => void;
174
+ export declare const setGlobalPrefix: (prefix: string) => void;
175
+ export declare const scope: (prefix: string) => import("./ScopedLogger.js").ScopedLogger;
176
+ export declare const setVerbosity: (level: any) => void;
177
+ export declare const setTheme: (theme: ThemeVariant) => void;
178
+ export declare const setBannerType: (bannerType: BannerType) => void;
179
+ export declare const showBanner: (bannerType?: BannerType) => void;
180
+ export declare const logWithSVG: (message: string, svgContent?: string, options?: StyleOptions) => void;
181
+ export declare const logAnimated: (message: string, duration?: number) => void;
182
+ export default styledLogger;
183
+ export { StyleBuilder, StylePresets, THEME_PRESETS, THEME_BANNERS, BANNER_VARIANTS } from './styling/index.js';
184
+ export type { ThemeVariant, BannerType, StyleOptions } from './types/index.js';
185
+ //# sourceMappingURL=styling-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styling-module.d.ts","sourceRoot":"","sources":["../src/styling-module.ts"],"names":[],"mappings":"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"}