@rdrudra99/hardlog 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/logger.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { LoggerConfig } from './types.js';
|
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* import log from '
|
|
10
|
+
* import log from 'hardlog';
|
|
11
11
|
*
|
|
12
12
|
* log.success('Server started successfully!');
|
|
13
13
|
* log.error('Database connection failed');
|
|
@@ -18,7 +18,7 @@ import type { LoggerConfig } from './types.js';
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
20
|
* // Configure logger
|
|
21
|
-
* import log from '
|
|
21
|
+
* import log from 'hardlog';
|
|
22
22
|
*
|
|
23
23
|
* log.config({ enabled: true, showTimestamp: true });
|
|
24
24
|
* ```
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { logger } from './logger.js';
|
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* import log from '
|
|
10
|
+
* import log from 'hardlog';
|
|
11
11
|
*
|
|
12
12
|
* log.success('Server started successfully!');
|
|
13
13
|
* log.error('Database connection failed');
|
|
@@ -18,7 +18,7 @@ import { logger } from './logger.js';
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
20
|
* // Configure logger
|
|
21
|
-
* import log from '
|
|
21
|
+
* import log from 'hardlog';
|
|
22
22
|
*
|
|
23
23
|
* log.config({ enabled: true, showTimestamp: true });
|
|
24
24
|
* ```
|
package/dist/logger.js
CHANGED
|
@@ -23,10 +23,10 @@ const BROWSER_STYLES = {
|
|
|
23
23
|
* Log level symbols and labels
|
|
24
24
|
*/
|
|
25
25
|
const LOG_CONFIG = {
|
|
26
|
-
success: { symbol: '
|
|
27
|
-
error: { symbol: '
|
|
26
|
+
success: { symbol: '✅', label: 'SUCCESS', color: ANSI_COLORS.green },
|
|
27
|
+
error: { symbol: '❌', label: 'ERROR', color: ANSI_COLORS.red },
|
|
28
28
|
warn: { symbol: '⚠', label: 'WARNING', color: ANSI_COLORS.yellow },
|
|
29
|
-
info: { symbol: '
|
|
29
|
+
info: { symbol: '💡', label: 'INFO', color: ANSI_COLORS.blue },
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Logger class - handles all logging operations
|
package/package.json
CHANGED