@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.
- package/dist/chunks/{Logger-BW-kn5_7.js → Logger-CTAaDeZi.js} +49 -366
- package/dist/chunks/Logger-CTAaDeZi.js.map +1 -0
- package/dist/chunks/Logger-D8pK7XXt.js +2 -0
- package/dist/chunks/Logger-D8pK7XXt.js.map +1 -0
- package/dist/chunks/ScopedLogger-D-7q8uVP.js +2 -0
- package/dist/chunks/ScopedLogger-D-7q8uVP.js.map +1 -0
- package/dist/chunks/ScopedLogger-hS0qSkZD.js +361 -0
- package/dist/chunks/ScopedLogger-hS0qSkZD.js.map +1 -0
- package/dist/core.js +280 -307
- package/dist/exports.cjs +1 -1
- package/dist/exports.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +226 -159
- package/dist/index.js.map +1 -1
- package/dist/styling.cjs +1 -1
- package/dist/styling.js +2 -2
- package/dist/types/Logger.d.ts +17 -15
- package/dist/types/Logger.d.ts.map +1 -1
- package/dist/types/core.d.ts +122 -216
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/exports-module.d.ts +1 -1
- package/dist/types/exports-module.d.ts.map +1 -1
- package/dist/types/index.d.ts +119 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/styling-module.d.ts +1 -1
- package/dist/types/styling-module.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Logger.ts +105 -58
- package/src/index.ts +32 -25
- package/dist/.tsbuildinfo +0 -1
- package/dist/Logger.d.ts +0 -710
- package/dist/Logger.d.ts.map +0 -1
- package/dist/Logger.js +0 -1118
- package/dist/ScopedLogger.d.ts +0 -318
- package/dist/ScopedLogger.d.ts.map +0 -1
- package/dist/ScopedLogger.js +0 -426
- package/dist/chunks/Logger-BW-kn5_7.js.map +0 -1
- package/dist/chunks/Logger-BpeuYIxR.js +0 -2
- package/dist/chunks/Logger-BpeuYIxR.js.map +0 -1
- package/dist/cli/CommandProcessor.d.ts +0 -103
- package/dist/cli/CommandProcessor.d.ts.map +0 -1
- package/dist/cli/CommandProcessor.js +0 -184
- package/dist/cli/commands/ConfigCommand.d.ts +0 -17
- package/dist/cli/commands/ConfigCommand.d.ts.map +0 -1
- package/dist/cli/commands/ConfigCommand.js +0 -88
- package/dist/cli/commands/ExportCommand.d.ts +0 -51
- package/dist/cli/commands/ExportCommand.d.ts.map +0 -1
- package/dist/cli/commands/ExportCommand.js +0 -243
- package/dist/cli/commands/HistoryCommand.d.ts +0 -50
- package/dist/cli/commands/HistoryCommand.d.ts.map +0 -1
- package/dist/cli/commands/HistoryCommand.js +0 -96
- package/dist/cli/commands/StatusCommand.d.ts +0 -33
- package/dist/cli/commands/StatusCommand.d.ts.map +0 -1
- package/dist/cli/commands/StatusCommand.js +0 -93
- package/dist/cli/commands/ThemeCommand.d.ts +0 -33
- package/dist/cli/commands/ThemeCommand.d.ts.map +0 -1
- package/dist/cli/commands/ThemeCommand.js +0 -79
- package/dist/cli/help.d.ts +0 -15
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -118
- package/dist/cli/index.d.ts +0 -15
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -46
- package/dist/constants.d.ts +0 -122
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -159
- package/dist/core.d.ts +0 -134
- package/dist/core.d.ts.map +0 -1
- package/dist/example.d.ts +0 -18
- package/dist/example.d.ts.map +0 -1
- package/dist/example.js +0 -154
- package/dist/exports-module.d.ts +0 -203
- package/dist/exports-module.d.ts.map +0 -1
- package/dist/exports-module.js +0 -260
- package/dist/handlers/AnalyticsLogHandler.d.ts +0 -11
- package/dist/handlers/AnalyticsLogHandler.d.ts.map +0 -1
- package/dist/handlers/AnalyticsLogHandler.js +0 -19
- package/dist/handlers/ExportLogHandler.d.ts +0 -103
- package/dist/handlers/ExportLogHandler.d.ts.map +0 -1
- package/dist/handlers/ExportLogHandler.js +0 -516
- package/dist/handlers/FileLogHandler.d.ts +0 -36
- package/dist/handlers/FileLogHandler.d.ts.map +0 -1
- package/dist/handlers/FileLogHandler.js +0 -156
- package/dist/handlers/RemoteLogHandler.d.ts +0 -14
- package/dist/handlers/RemoteLogHandler.d.ts.map +0 -1
- package/dist/handlers/RemoteLogHandler.js +0 -37
- package/dist/handlers/index.d.ts +0 -8
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/index.js +0 -7
- package/dist/index.d.ts +0 -157
- package/dist/index.d.ts.map +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -139
- package/dist/styling/LogStyleBuilder.d.ts +0 -149
- package/dist/styling/LogStyleBuilder.d.ts.map +0 -1
- package/dist/styling/LogStyleBuilder.js +0 -289
- package/dist/styling/SemanticStyles.d.ts +0 -181
- package/dist/styling/SemanticStyles.d.ts.map +0 -1
- package/dist/styling/SemanticStyles.js +0 -339
- package/dist/styling/SmartPresets.d.ts +0 -25
- package/dist/styling/SmartPresets.d.ts.map +0 -1
- package/dist/styling/SmartPresets.js +0 -276
- package/dist/styling/StyleBuilder.d.ts +0 -140
- package/dist/styling/StyleBuilder.d.ts.map +0 -1
- package/dist/styling/StyleBuilder.js +0 -280
- package/dist/styling/banners.d.ts +0 -45
- package/dist/styling/banners.d.ts.map +0 -1
- package/dist/styling/banners.js +0 -155
- package/dist/styling/index.d.ts +0 -10
- package/dist/styling/index.d.ts.map +0 -1
- package/dist/styling/index.js +0 -9
- package/dist/styling/themes.d.ts +0 -10
- package/dist/styling/themes.d.ts.map +0 -1
- package/dist/styling/themes.js +0 -231
- package/dist/styling-module.d.ts +0 -185
- package/dist/styling-module.d.ts.map +0 -1
- package/dist/styling-module.js +0 -199
- package/dist/types/core.js +0 -28
- package/dist/types/handlers.d.ts +0 -88
- package/dist/types/handlers.d.ts.map +0 -1
- package/dist/types/handlers.js +0 -4
- package/dist/types/index.js +0 -4
- package/dist/utils/environment.d.ts +0 -47
- package/dist/utils/environment.d.ts.map +0 -1
- package/dist/utils/environment.js +0 -85
- package/dist/utils/formatting.d.ts +0 -40
- package/dist/utils/formatting.d.ts.map +0 -1
- package/dist/utils/formatting.js +0 -117
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -6
- package/dist/utils/opentui-detection.d.ts +0 -34
- package/dist/utils/opentui-detection.d.ts.map +0 -1
- package/dist/utils/opentui-detection.js +0 -116
- package/dist/utils/output.d.ts +0 -44
- package/dist/utils/output.d.ts.map +0 -1
- package/dist/utils/output.js +0 -150
- package/dist/utils/stackTrace.d.ts +0 -9
- package/dist/utils/stackTrace.d.ts.map +0 -1
- package/dist/utils/stackTrace.js +0 -81
- package/dist/utils/timestamps.d.ts +0 -20
- package/dist/utils/timestamps.d.ts.map +0 -1
- package/dist/utils/timestamps.js +0 -71
package/dist/cli/help.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Help system for Advanced Logger CLI
|
|
3
|
-
*/
|
|
4
|
-
import { StyleBuilder } from '../styling/index.js';
|
|
5
|
-
/**
|
|
6
|
-
* Help command - show comprehensive CLI help
|
|
7
|
-
*/
|
|
8
|
-
export class HelpCommand {
|
|
9
|
-
name = 'help';
|
|
10
|
-
description = 'Show CLI help and available commands';
|
|
11
|
-
usage = '/help [command]';
|
|
12
|
-
execute(_args, logger) {
|
|
13
|
-
const helpStyle = new StyleBuilder()
|
|
14
|
-
.bg('linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)')
|
|
15
|
-
.color('#495057')
|
|
16
|
-
.padding('15px 20px')
|
|
17
|
-
.rounded('8px')
|
|
18
|
-
.border('1px solid #dee2e6')
|
|
19
|
-
.font('Monaco, Consolas, monospace')
|
|
20
|
-
.size('13px')
|
|
21
|
-
.build();
|
|
22
|
-
const helpText = `
|
|
23
|
-
╭─────────────── ADVANCED LOGGER CLI COMMANDS ─────────────────╮
|
|
24
|
-
│ │
|
|
25
|
-
│ CONFIGURATION │
|
|
26
|
-
│ /config Show current configuration │
|
|
27
|
-
│ /config {json} Apply JSON configuration │
|
|
28
|
-
│ /config key=val Apply key-value configuration │
|
|
29
|
-
│ /themes Show available themes │
|
|
30
|
-
│ /banners Show available banner types │
|
|
31
|
-
│ /banner [type] Change/show banner type │
|
|
32
|
-
│ /status Show logger status & buffer stats │
|
|
33
|
-
│ /demo Show feature demonstration │
|
|
34
|
-
│ /reset Reset to default configuration │
|
|
35
|
-
│ │
|
|
36
|
-
│ EXPORT & CLIPBOARD │
|
|
37
|
-
│ /export <format> Export logs (json|csv|md|plain|html) │
|
|
38
|
-
│ /copy <format> Copy logs to clipboard │
|
|
39
|
-
│ /buffer-size N Set log buffer size │
|
|
40
|
-
│ /buffer-info Show buffer statistics │
|
|
41
|
-
│ /clear-buffer Clear stored logs │
|
|
42
|
-
│ │
|
|
43
|
-
│ EXPORT FILTERS (for export/copy commands) │
|
|
44
|
-
│ --level error,warn Filter by log levels │
|
|
45
|
-
│ --since 2h Logs from last 2 hours │
|
|
46
|
-
│ --until 1h Logs until 1 hour ago │
|
|
47
|
-
│ --prefix API,DB Filter by prefixes │
|
|
48
|
-
│ --exclude-prefix INT Exclude prefixes │
|
|
49
|
-
│ --last 50 Last 50 logs only │
|
|
50
|
-
│ --first 25 First 25 logs only │
|
|
51
|
-
│ --search "error" Search in log messages │
|
|
52
|
-
│ --with-stack Only logs with stack traces │
|
|
53
|
-
│ --errors-only Only error + critical logs │
|
|
54
|
-
│ --group-by level Group by level/prefix/hour │
|
|
55
|
-
│ │
|
|
56
|
-
│ EXPORT OPTIONS │
|
|
57
|
-
│ --minimal Minimal output format │
|
|
58
|
-
│ --compact Remove extra whitespace │
|
|
59
|
-
│ --styled Include styling (HTML format) │
|
|
60
|
-
│ │
|
|
61
|
-
├──────────────────── CONFIGURATION OPTIONS ─────────────────┤
|
|
62
|
-
│ │
|
|
63
|
-
│ theme: default | dark | light | neon | minimal | cyberpunk│
|
|
64
|
-
│ bannerType: simple | ascii | unicode | svg | animated │
|
|
65
|
-
│ verbosity: debug | info | warn | error | critical | silent│
|
|
66
|
-
│ enableColors: true | false │
|
|
67
|
-
│ enableTimestamps: true | false │
|
|
68
|
-
│ enableStackTrace: true | false │
|
|
69
|
-
│ globalPrefix: "string" │
|
|
70
|
-
│ bufferSize: number (50-10000) │
|
|
71
|
-
│ │
|
|
72
|
-
├──────────────────────── EXAMPLES ──────────────────────────┤
|
|
73
|
-
│ │
|
|
74
|
-
│ Basic Configuration: │
|
|
75
|
-
│ /config {"theme":"dark","verbosity":"debug"} │
|
|
76
|
-
│ /config theme=neon,bufferSize=2000 │
|
|
77
|
-
│ /banner animated Change to animated banner │
|
|
78
|
-
│ │
|
|
79
|
-
│ Export Examples: │
|
|
80
|
-
│ /export json --level=error,warn --last=25 │
|
|
81
|
-
│ /export csv --since=2h --prefix=API │
|
|
82
|
-
│ /export markdown --group-by=level --errors-only │
|
|
83
|
-
│ /export html --styled --since=1h │
|
|
84
|
-
│ │
|
|
85
|
-
│ Clipboard Examples: │
|
|
86
|
-
│ /copy plain --minimal --last=10 │
|
|
87
|
-
│ /copy json --search="authentication" --compact │
|
|
88
|
-
│ /copy csv --since=30m --exclude-prefix=DEBUG │
|
|
89
|
-
│ │
|
|
90
|
-
│ Buffer Management: │
|
|
91
|
-
│ /buffer-size 5000 Increase buffer to 5000 logs │
|
|
92
|
-
│ /buffer-info Show detailed buffer statistics │
|
|
93
|
-
│ /clear-buffer Clear all stored logs │
|
|
94
|
-
│ │
|
|
95
|
-
│ Time Formats: │
|
|
96
|
-
│ --since=2h 2 hours ago │
|
|
97
|
-
│ --since=30m 30 minutes ago │
|
|
98
|
-
│ --since=1d 1 day ago │
|
|
99
|
-
│ --since="2024-01-01T10:00:00Z" Specific ISO date │
|
|
100
|
-
│ │
|
|
101
|
-
╰─────────────────────────────────────────────────────────────╯`;
|
|
102
|
-
console.log(`%c${helpText}`, helpStyle);
|
|
103
|
-
// Show quick tips
|
|
104
|
-
logger.group('💡 Quick Tips');
|
|
105
|
-
const tips = [
|
|
106
|
-
'Use /demo to see all logger features in action',
|
|
107
|
-
'Logs are automatically stored in a circular buffer for export',
|
|
108
|
-
'Export formats: JSON (structured), CSV (Excel), Markdown (readable), Plain (simple), HTML (styled)',
|
|
109
|
-
'Time filters support relative (2h, 30m) and absolute (ISO) formats',
|
|
110
|
-
'Combine multiple filters: /export json --level=error --since=1h --search="auth"',
|
|
111
|
-
'Use /copy for quick clipboard access instead of /export'
|
|
112
|
-
];
|
|
113
|
-
tips.forEach(tip => {
|
|
114
|
-
logger.info(`• ${tip}`);
|
|
115
|
-
});
|
|
116
|
-
logger.groupEnd();
|
|
117
|
-
}
|
|
118
|
-
}
|
package/dist/cli/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview CLI system exports for Advanced Logger
|
|
3
|
-
*/
|
|
4
|
-
export { CommandProcessor, type ICommand } from './CommandProcessor.js';
|
|
5
|
-
import { CommandProcessor } from './CommandProcessor.js';
|
|
6
|
-
export { ConfigCommand } from './commands/ConfigCommand.js';
|
|
7
|
-
export { ThemesCommand, BannersCommand, BannerCommand } from './commands/ThemeCommand.js';
|
|
8
|
-
export { StatusCommand, ResetCommand, DemoCommand } from './commands/StatusCommand.js';
|
|
9
|
-
export { ExportCommand, CopyCommand, BufferSizeCommand, ClearBufferCommand, BufferInfoCommand } from './commands/ExportCommand.js';
|
|
10
|
-
export { HelpCommand } from './help.js';
|
|
11
|
-
/**
|
|
12
|
-
* Create and configure default CLI processor
|
|
13
|
-
*/
|
|
14
|
-
export declare function createDefaultCLI(): CommandProcessor;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cli/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EACH,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAqBxC;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,gBAAgB,CAyBnD"}
|
package/dist/cli/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview CLI system exports for Advanced Logger
|
|
3
|
-
*/
|
|
4
|
-
// Core CLI system
|
|
5
|
-
export { CommandProcessor } from './CommandProcessor.js';
|
|
6
|
-
import { CommandProcessor } from './CommandProcessor.js';
|
|
7
|
-
// Commands
|
|
8
|
-
export { ConfigCommand } from './commands/ConfigCommand.js';
|
|
9
|
-
export { ThemesCommand, BannersCommand, BannerCommand } from './commands/ThemeCommand.js';
|
|
10
|
-
export { StatusCommand, ResetCommand, DemoCommand } from './commands/StatusCommand.js';
|
|
11
|
-
export { ExportCommand, CopyCommand, BufferSizeCommand, ClearBufferCommand, BufferInfoCommand } from './commands/ExportCommand.js';
|
|
12
|
-
// Help system
|
|
13
|
-
export { HelpCommand } from './help.js';
|
|
14
|
-
// Import all commands
|
|
15
|
-
import { HelpCommand } from './help.js';
|
|
16
|
-
import { ConfigCommand } from './commands/ConfigCommand.js';
|
|
17
|
-
import { ThemesCommand, BannersCommand, BannerCommand } from './commands/ThemeCommand.js';
|
|
18
|
-
import { StatusCommand, ResetCommand, DemoCommand } from './commands/StatusCommand.js';
|
|
19
|
-
import { ExportCommand, CopyCommand, BufferSizeCommand, ClearBufferCommand, BufferInfoCommand } from './commands/ExportCommand.js';
|
|
20
|
-
import { HistoryCommand, ClearHistoryCommand, InteractiveCommand, PluginsCommand } from './commands/HistoryCommand.js';
|
|
21
|
-
/**
|
|
22
|
-
* Create and configure default CLI processor
|
|
23
|
-
*/
|
|
24
|
-
export function createDefaultCLI() {
|
|
25
|
-
const processor = new CommandProcessor();
|
|
26
|
-
// Register all default commands
|
|
27
|
-
processor.registerCommand(new HelpCommand());
|
|
28
|
-
processor.registerCommand(new ConfigCommand());
|
|
29
|
-
processor.registerCommand(new ThemesCommand());
|
|
30
|
-
processor.registerCommand(new BannersCommand());
|
|
31
|
-
processor.registerCommand(new BannerCommand());
|
|
32
|
-
processor.registerCommand(new StatusCommand());
|
|
33
|
-
processor.registerCommand(new ResetCommand());
|
|
34
|
-
processor.registerCommand(new DemoCommand());
|
|
35
|
-
processor.registerCommand(new ExportCommand());
|
|
36
|
-
processor.registerCommand(new CopyCommand());
|
|
37
|
-
processor.registerCommand(new BufferSizeCommand());
|
|
38
|
-
processor.registerCommand(new ClearBufferCommand());
|
|
39
|
-
processor.registerCommand(new BufferInfoCommand());
|
|
40
|
-
// Register new enhanced commands
|
|
41
|
-
processor.registerCommand(new HistoryCommand());
|
|
42
|
-
processor.registerCommand(new ClearHistoryCommand());
|
|
43
|
-
processor.registerCommand(new InteractiveCommand());
|
|
44
|
-
processor.registerCommand(new PluginsCommand());
|
|
45
|
-
return processor;
|
|
46
|
-
}
|
package/dist/constants.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Global constants for Advanced Logger
|
|
3
|
-
*/
|
|
4
|
-
import type { LogLevel } from './types/index.js';
|
|
5
|
-
import type { LevelStyleConfig } from './utils/index.js';
|
|
6
|
-
/**
|
|
7
|
-
* Default configuration values
|
|
8
|
-
*/
|
|
9
|
-
export declare const DEFAULT_CONFIG: {
|
|
10
|
-
readonly verbosity: "info";
|
|
11
|
-
readonly enableColors: true;
|
|
12
|
-
readonly enableTimestamps: true;
|
|
13
|
-
readonly enableStackTrace: true;
|
|
14
|
-
readonly theme: "default";
|
|
15
|
-
readonly bannerType: "simple";
|
|
16
|
-
readonly bufferSize: 1000;
|
|
17
|
-
readonly autoDetectTheme: true;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Basic level styles for core module (minimal CSS styling)
|
|
21
|
-
*/
|
|
22
|
-
export declare const LEVEL_STYLES: Record<LogLevel | 'success', LevelStyleConfig>;
|
|
23
|
-
/**
|
|
24
|
-
* Maximum allowed buffer sizes for performance
|
|
25
|
-
*/
|
|
26
|
-
export declare const BUFFER_LIMITS: {
|
|
27
|
-
readonly MIN_SIZE: 50;
|
|
28
|
-
readonly DEFAULT_SIZE: 1000;
|
|
29
|
-
readonly MAX_SIZE: 10000;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Export format definitions with extensions
|
|
33
|
-
*/
|
|
34
|
-
export declare const EXPORT_FORMATS: {
|
|
35
|
-
readonly json: {
|
|
36
|
-
readonly extension: ".json";
|
|
37
|
-
readonly mimeType: "application/json";
|
|
38
|
-
};
|
|
39
|
-
readonly csv: {
|
|
40
|
-
readonly extension: ".csv";
|
|
41
|
-
readonly mimeType: "text/csv";
|
|
42
|
-
};
|
|
43
|
-
readonly markdown: {
|
|
44
|
-
readonly extension: ".md";
|
|
45
|
-
readonly mimeType: "text/markdown";
|
|
46
|
-
};
|
|
47
|
-
readonly plain: {
|
|
48
|
-
readonly extension: ".txt";
|
|
49
|
-
readonly mimeType: "text/plain";
|
|
50
|
-
};
|
|
51
|
-
readonly html: {
|
|
52
|
-
readonly extension: ".html";
|
|
53
|
-
readonly mimeType: "text/html";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* CLI command definitions
|
|
58
|
-
*/
|
|
59
|
-
export declare const CLI_COMMANDS: {
|
|
60
|
-
readonly config: "config";
|
|
61
|
-
readonly help: "help";
|
|
62
|
-
readonly themes: "themes";
|
|
63
|
-
readonly banners: "banners";
|
|
64
|
-
readonly banner: "banner";
|
|
65
|
-
readonly status: "status";
|
|
66
|
-
readonly reset: "reset";
|
|
67
|
-
readonly demo: "demo";
|
|
68
|
-
readonly export: "export";
|
|
69
|
-
readonly copy: "copy";
|
|
70
|
-
readonly 'buffer-size': "buffer-size";
|
|
71
|
-
readonly 'clear-buffer': "clear-buffer";
|
|
72
|
-
readonly 'buffer-info': "buffer-info";
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Time parsing constants for relative time filters
|
|
76
|
-
*/
|
|
77
|
-
export declare const TIME_UNITS: {
|
|
78
|
-
readonly ms: 1;
|
|
79
|
-
readonly s: 1000;
|
|
80
|
-
readonly m: number;
|
|
81
|
-
readonly h: number;
|
|
82
|
-
readonly d: number;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Default styling values
|
|
86
|
-
*/
|
|
87
|
-
export declare const STYLE_DEFAULTS: {
|
|
88
|
-
readonly FONT_FAMILY: "Monaco, Consolas, monospace";
|
|
89
|
-
readonly FONT_SIZE: "12px";
|
|
90
|
-
readonly BORDER_RADIUS: "4px";
|
|
91
|
-
readonly PADDING: "4px 8px";
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Level priority mapping for filtering
|
|
95
|
-
*/
|
|
96
|
-
export declare const LEVEL_PRIORITIES: Record<LogLevel, number>;
|
|
97
|
-
/**
|
|
98
|
-
* Adaptive color configurations for DevTools theme compatibility
|
|
99
|
-
*/
|
|
100
|
-
export declare const ADAPTIVE_COLORS: {
|
|
101
|
-
readonly timestamp: {
|
|
102
|
-
readonly light: "#666666";
|
|
103
|
-
readonly dark: "#a0a0a0";
|
|
104
|
-
};
|
|
105
|
-
readonly messageText: {
|
|
106
|
-
readonly light: "#2d3748";
|
|
107
|
-
readonly dark: "#f7fafc";
|
|
108
|
-
};
|
|
109
|
-
readonly prefix: {
|
|
110
|
-
readonly light: "#2d3748";
|
|
111
|
-
readonly dark: "#e2e8f0";
|
|
112
|
-
};
|
|
113
|
-
readonly prefixBackground: {
|
|
114
|
-
readonly light: "#2d3748";
|
|
115
|
-
readonly dark: "#4a5568";
|
|
116
|
-
};
|
|
117
|
-
readonly location: {
|
|
118
|
-
readonly light: "#718096";
|
|
119
|
-
readonly dark: "#a0aec0";
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAkB,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,EAAE,gBAAgB,CAiD9D,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAMjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAM5C,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAqBuB,CAAC"}
|
package/dist/constants.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Global constants for Advanced Logger
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Default configuration values
|
|
6
|
-
*/
|
|
7
|
-
export const DEFAULT_CONFIG = {
|
|
8
|
-
verbosity: 'info',
|
|
9
|
-
enableColors: true,
|
|
10
|
-
enableTimestamps: true,
|
|
11
|
-
enableStackTrace: true,
|
|
12
|
-
theme: 'default',
|
|
13
|
-
bannerType: 'simple',
|
|
14
|
-
bufferSize: 1000,
|
|
15
|
-
autoDetectTheme: true,
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Basic level styles for core module (minimal CSS styling)
|
|
19
|
-
*/
|
|
20
|
-
export const LEVEL_STYLES = {
|
|
21
|
-
debug: {
|
|
22
|
-
emoji: '🔍',
|
|
23
|
-
label: 'DEBUG',
|
|
24
|
-
background: 'linear-gradient(90deg, #6c757d, #495057)',
|
|
25
|
-
color: '#ffffff',
|
|
26
|
-
border: '1px solid #6c757d',
|
|
27
|
-
shadow: '0 2px 4px rgba(108, 117, 125, 0.3)'
|
|
28
|
-
},
|
|
29
|
-
info: {
|
|
30
|
-
emoji: 'ℹ️',
|
|
31
|
-
label: 'INFO',
|
|
32
|
-
background: 'linear-gradient(90deg, #007bff, #0056b3)',
|
|
33
|
-
color: '#ffffff',
|
|
34
|
-
border: '1px solid #007bff',
|
|
35
|
-
shadow: '0 2px 4px rgba(0, 123, 255, 0.3)'
|
|
36
|
-
},
|
|
37
|
-
warn: {
|
|
38
|
-
emoji: '⚠️',
|
|
39
|
-
label: 'WARN',
|
|
40
|
-
background: 'linear-gradient(90deg, #ffc107, #e0a800)',
|
|
41
|
-
color: '#000000',
|
|
42
|
-
border: '1px solid #ffc107',
|
|
43
|
-
shadow: '0 2px 4px rgba(255, 193, 7, 0.3)'
|
|
44
|
-
},
|
|
45
|
-
error: {
|
|
46
|
-
emoji: '❌',
|
|
47
|
-
label: 'ERROR',
|
|
48
|
-
background: 'linear-gradient(90deg, #dc3545, #c82333)',
|
|
49
|
-
color: '#ffffff',
|
|
50
|
-
border: '1px solid #dc3545',
|
|
51
|
-
shadow: '0 2px 4px rgba(220, 53, 69, 0.3)'
|
|
52
|
-
},
|
|
53
|
-
critical: {
|
|
54
|
-
emoji: '🚨',
|
|
55
|
-
label: 'CRITICAL',
|
|
56
|
-
background: 'linear-gradient(90deg, #8B0000, #FF0000)',
|
|
57
|
-
color: '#ffffff',
|
|
58
|
-
border: '2px solid #FF0000',
|
|
59
|
-
shadow: '0 4px 8px rgba(255, 0, 0, 0.4)'
|
|
60
|
-
},
|
|
61
|
-
success: {
|
|
62
|
-
emoji: '✅',
|
|
63
|
-
label: 'SUCCESS',
|
|
64
|
-
background: 'linear-gradient(90deg, #28a745, #1e7e34)',
|
|
65
|
-
color: '#ffffff',
|
|
66
|
-
border: '1px solid #28a745',
|
|
67
|
-
shadow: '0 2px 4px rgba(40, 167, 69, 0.3)'
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Maximum allowed buffer sizes for performance
|
|
72
|
-
*/
|
|
73
|
-
export const BUFFER_LIMITS = {
|
|
74
|
-
MIN_SIZE: 50,
|
|
75
|
-
DEFAULT_SIZE: 1000,
|
|
76
|
-
MAX_SIZE: 10000,
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Export format definitions with extensions
|
|
80
|
-
*/
|
|
81
|
-
export const EXPORT_FORMATS = {
|
|
82
|
-
json: { extension: '.json', mimeType: 'application/json' },
|
|
83
|
-
csv: { extension: '.csv', mimeType: 'text/csv' },
|
|
84
|
-
markdown: { extension: '.md', mimeType: 'text/markdown' },
|
|
85
|
-
plain: { extension: '.txt', mimeType: 'text/plain' },
|
|
86
|
-
html: { extension: '.html', mimeType: 'text/html' },
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* CLI command definitions
|
|
90
|
-
*/
|
|
91
|
-
export const CLI_COMMANDS = {
|
|
92
|
-
config: 'config',
|
|
93
|
-
help: 'help',
|
|
94
|
-
themes: 'themes',
|
|
95
|
-
banners: 'banners',
|
|
96
|
-
banner: 'banner',
|
|
97
|
-
status: 'status',
|
|
98
|
-
reset: 'reset',
|
|
99
|
-
demo: 'demo',
|
|
100
|
-
export: 'export',
|
|
101
|
-
copy: 'copy',
|
|
102
|
-
'buffer-size': 'buffer-size',
|
|
103
|
-
'clear-buffer': 'clear-buffer',
|
|
104
|
-
'buffer-info': 'buffer-info',
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Time parsing constants for relative time filters
|
|
108
|
-
*/
|
|
109
|
-
export const TIME_UNITS = {
|
|
110
|
-
ms: 1,
|
|
111
|
-
s: 1000,
|
|
112
|
-
m: 60 * 1000,
|
|
113
|
-
h: 60 * 60 * 1000,
|
|
114
|
-
d: 24 * 60 * 60 * 1000,
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Default styling values
|
|
118
|
-
*/
|
|
119
|
-
export const STYLE_DEFAULTS = {
|
|
120
|
-
FONT_FAMILY: 'Monaco, Consolas, monospace',
|
|
121
|
-
FONT_SIZE: '12px',
|
|
122
|
-
BORDER_RADIUS: '4px',
|
|
123
|
-
PADDING: '4px 8px',
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Level priority mapping for filtering
|
|
127
|
-
*/
|
|
128
|
-
export const LEVEL_PRIORITIES = {
|
|
129
|
-
debug: 0,
|
|
130
|
-
info: 1,
|
|
131
|
-
warn: 2,
|
|
132
|
-
error: 3,
|
|
133
|
-
critical: 4,
|
|
134
|
-
};
|
|
135
|
-
/**
|
|
136
|
-
* Adaptive color configurations for DevTools theme compatibility
|
|
137
|
-
*/
|
|
138
|
-
export const ADAPTIVE_COLORS = {
|
|
139
|
-
timestamp: {
|
|
140
|
-
light: '#666666',
|
|
141
|
-
dark: '#a0a0a0',
|
|
142
|
-
},
|
|
143
|
-
messageText: {
|
|
144
|
-
light: '#2d3748',
|
|
145
|
-
dark: '#f7fafc',
|
|
146
|
-
},
|
|
147
|
-
prefix: {
|
|
148
|
-
light: '#2d3748',
|
|
149
|
-
dark: '#e2e8f0',
|
|
150
|
-
},
|
|
151
|
-
prefixBackground: {
|
|
152
|
-
light: '#2d3748',
|
|
153
|
-
dark: '#4a5568',
|
|
154
|
-
},
|
|
155
|
-
location: {
|
|
156
|
-
light: '#718096',
|
|
157
|
-
dark: '#a0aec0',
|
|
158
|
-
},
|
|
159
|
-
};
|
package/dist/core.d.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Core Logger Module - Minimal logging without advanced features
|
|
3
|
-
* @version 0.0.1
|
|
4
|
-
*
|
|
5
|
-
* This module provides the essential logging functionality without visual enhancements,
|
|
6
|
-
* SVG support, or advanced styling. Perfect for lightweight applications or server-side usage.
|
|
7
|
-
*/
|
|
8
|
-
import type { Verbosity, LoggerConfig, ILogHandler } from './types/index.js';
|
|
9
|
-
/**
|
|
10
|
-
* Minimal Logger class with core functionality only
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import { CoreLogger } from '@mks2508/better-logger/core';
|
|
15
|
-
*
|
|
16
|
-
* const logger = new CoreLogger();
|
|
17
|
-
* logger.info('Hello world');
|
|
18
|
-
* logger.error('Something went wrong', error);
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class CoreLogger {
|
|
22
|
-
private config;
|
|
23
|
-
private scopedPrefix?;
|
|
24
|
-
private handlers;
|
|
25
|
-
private timers;
|
|
26
|
-
private groupDepth;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new CoreLogger instance
|
|
29
|
-
* @param config - Optional configuration
|
|
30
|
-
*/
|
|
31
|
-
constructor(config?: Partial<LoggerConfig>);
|
|
32
|
-
/**
|
|
33
|
-
* Get current configuration
|
|
34
|
-
*/
|
|
35
|
-
getConfig(): LoggerConfig;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the global prefix for all log messages
|
|
38
|
-
*/
|
|
39
|
-
setGlobalPrefix(prefix: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the verbosity level for filtering log output
|
|
42
|
-
*/
|
|
43
|
-
setVerbosity(level: Verbosity): void;
|
|
44
|
-
/**
|
|
45
|
-
* Creates a scoped logger with a specific prefix
|
|
46
|
-
*/
|
|
47
|
-
scope(prefix: string): CoreLogger;
|
|
48
|
-
/**
|
|
49
|
-
* Adds a custom log handler for extensibility
|
|
50
|
-
*/
|
|
51
|
-
addHandler(handler: ILogHandler): void;
|
|
52
|
-
/**
|
|
53
|
-
* Checks if a log level should be output based on current verbosity
|
|
54
|
-
*/
|
|
55
|
-
private shouldLog;
|
|
56
|
-
/**
|
|
57
|
-
* Gets the effective prefix (global + scoped)
|
|
58
|
-
*/
|
|
59
|
-
private getEffectivePrefix;
|
|
60
|
-
/**
|
|
61
|
-
* Core logging method with universal formatting
|
|
62
|
-
*/
|
|
63
|
-
private log;
|
|
64
|
-
/**
|
|
65
|
-
* Logs debug information (lowest priority)
|
|
66
|
-
*/
|
|
67
|
-
debug(...args: any[]): void;
|
|
68
|
-
/**
|
|
69
|
-
* Logs informational messages
|
|
70
|
-
*/
|
|
71
|
-
info(...args: any[]): void;
|
|
72
|
-
/**
|
|
73
|
-
* Logs warning messages
|
|
74
|
-
*/
|
|
75
|
-
warn(...args: any[]): void;
|
|
76
|
-
/**
|
|
77
|
-
* Logs error messages
|
|
78
|
-
*/
|
|
79
|
-
error(...args: any[]): void;
|
|
80
|
-
/**
|
|
81
|
-
* Logs critical errors (highest priority)
|
|
82
|
-
*/
|
|
83
|
-
critical(...args: any[]): void;
|
|
84
|
-
/**
|
|
85
|
-
* Logs trace information (detailed debugging)
|
|
86
|
-
*/
|
|
87
|
-
trace(...args: any[]): void;
|
|
88
|
-
/**
|
|
89
|
-
* Displays data in a table format
|
|
90
|
-
*/
|
|
91
|
-
table(data: any, columns?: string[]): void;
|
|
92
|
-
/**
|
|
93
|
-
* Starts a collapsible group in the console
|
|
94
|
-
*/
|
|
95
|
-
group(label: string, collapsed?: boolean): void;
|
|
96
|
-
/**
|
|
97
|
-
* Ends the current console group
|
|
98
|
-
*/
|
|
99
|
-
groupEnd(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Starts a timer with the given label
|
|
102
|
-
*/
|
|
103
|
-
time(label: string): void;
|
|
104
|
-
/**
|
|
105
|
-
* Ends a timer and logs the elapsed time
|
|
106
|
-
*/
|
|
107
|
-
timeEnd(label: string): void;
|
|
108
|
-
/**
|
|
109
|
-
* Gets performance.now() or fallback for older environments
|
|
110
|
-
*/
|
|
111
|
-
private getPerformanceNow;
|
|
112
|
-
}
|
|
113
|
-
declare const coreLogger: CoreLogger;
|
|
114
|
-
/**
|
|
115
|
-
* Export individual methods for convenience (with proper binding)
|
|
116
|
-
*/
|
|
117
|
-
export declare const debug: (...args: any[]) => void;
|
|
118
|
-
export declare const info: (...args: any[]) => void;
|
|
119
|
-
export declare const warn: (...args: any[]) => void;
|
|
120
|
-
export declare const error: (...args: any[]) => void;
|
|
121
|
-
export declare const critical: (...args: any[]) => void;
|
|
122
|
-
export declare const trace: (...args: any[]) => void;
|
|
123
|
-
export declare const table: (data: any, columns?: string[]) => void;
|
|
124
|
-
export declare const group: (label: string, collapsed?: boolean) => void;
|
|
125
|
-
export declare const groupEnd: () => void;
|
|
126
|
-
export declare const time: (label: string) => void;
|
|
127
|
-
export declare const timeEnd: (label: string) => void;
|
|
128
|
-
export declare const setGlobalPrefix: (prefix: string) => void;
|
|
129
|
-
export declare const scope: (prefix: string) => CoreLogger;
|
|
130
|
-
export declare const setVerbosity: (level: Verbosity) => void;
|
|
131
|
-
export declare const addHandler: (handler: ILogHandler) => void;
|
|
132
|
-
export default coreLogger;
|
|
133
|
-
export type { LogLevel, Verbosity, LoggerConfig, ILogHandler, LogMetadata } from './types/index.js';
|
|
134
|
-
//# sourceMappingURL=core.d.ts.map
|
package/dist/core.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"}
|
package/dist/example.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Comprehensive examples and demonstrations of Better Logger
|
|
3
|
-
*/
|
|
4
|
-
export declare function demonstrateBanners(): void;
|
|
5
|
-
export declare function demonstrateThemes(): void;
|
|
6
|
-
export declare function demonstrateSVG(): void;
|
|
7
|
-
export declare function demonstrateAnimations(): void;
|
|
8
|
-
export declare function demonstrateCLI(): void;
|
|
9
|
-
export declare function demonstrateExports(): void;
|
|
10
|
-
export declare function demonstrateBasicLogging(): void;
|
|
11
|
-
export declare function demonstrateTable(): void;
|
|
12
|
-
export declare function demonstrateGrouping(): void;
|
|
13
|
-
export declare function demonstrateTiming(): void;
|
|
14
|
-
export declare function demonstrateScopedLogger(): void;
|
|
15
|
-
export declare function demonstrateTrace(): void;
|
|
16
|
-
export declare function demonstrateCustomStyles(): void;
|
|
17
|
-
export declare function demonstrateAllFeatures(): void;
|
|
18
|
-
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../src/example.ts"],"names":[],"mappings":"AAAA;;GAEG;AA0BH,wBAAgB,kBAAkB,SAQjC;AAED,wBAAgB,iBAAiB,SAUhC;AAED,wBAAgB,cAAc,SAW7B;AAED,wBAAgB,qBAAqB,SAGpC;AAED,wBAAgB,cAAc,SAgB7B;AAED,wBAAgB,kBAAkB,SAWjC;AAGD,wBAAgB,uBAAuB,SAUtC;AAED,wBAAgB,gBAAgB,SAS/B;AAED,wBAAgB,mBAAmB,SAgBlC;AAED,wBAAgB,iBAAiB,SAShC;AAED,wBAAgB,uBAAuB,SAWtC;AAED,wBAAgB,gBAAgB,SAQ/B;AAED,wBAAgB,uBAAuB,SActC;AAGD,wBAAgB,sBAAsB,SAcrC"}
|